summaryrefslogtreecommitdiff
path: root/src/devices/IKeyboard.cpp
Commit message (Collapse)AuthorAgeFilesLines
* errorOverlay: modernize, refactor, use GPU rendering (#14122)Vaxry2026-04-191-3/+3
| | | | | | | Improves the overlay's rendering: - GPU accelerated - supports gradients - wraps - cleaner code a bit
* config: cleanup the entire config infrastructure (#13785)Vaxry2026-03-201-6/+9
| | | | Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-19/+19
|
* internal: fix clang-tidy "errors" (#11862)UjinT342025-09-291-2/+2
|
* vkeyboard: update cached mods before IME; add share_states = 2 config option ↵JS Deck2025-09-201-0/+5
| | | | (#11720)
* input: fix virtual keyboard keymaps (#11763)usering-around2025-09-191-14/+1
|
* input: support xkb v2 format (#11482)usering-around2025-09-111-13/+44
|
* hyprctl: add an active layout index field in devices (#11531)Levizor2025-09-091-0/+13
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-5/+5
|
* virtualkeyboard: Add options to skip releasing pressed keys on close and to ↵JS Deck2025-08-041-13/+24
| | | | skip sharing key states (#11214)
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-1/+1
|
* devices: refactor class member vars (#10206)davc0n2025-04-291-120/+120
|
* config: Refactor class member vars (#10124)davc0n2025-04-201-1/+1
| | | | | * Refactor config classes vars * Fix clang format errors
* core: avoid .at() and use [] operator (#9347)Tom Englund2025-02-061-10/+10
| | | avoid .at() where it makes sense and use [] operator in loops.
* core: begin using CFileDescriptor from hyprutils (#9122)Tom Englund2025-01-301-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * hyprctl: make fd use CFileDescriptor make use of the new hyprutils CFileDescriptor instead of manual FD handling. * ikeyboard: make fd use CFileDescriptor make use of the new CFileDescriptor instead of manual FD handling, also in sendKeymap remove dead code, it already early returns if keyboard isnt valid, and dont try to close the FD that ikeyboard owns. * core: make SHMFile functions use CFileDescriptor make SHMFile misc functions use CFileDescriptor and its associated usage in dmabuf and keyboard. * core: make explicit sync use CFileDescriptor begin using CFileDescriptor in explicit sync and its timelines and eglsync usage in opengl, there is still a bit left with manual handling that requires future aquamarine change aswell. * eventmgr: make fd and sockets use CFileDescriptor make use of the hyprutils CFileDescriptor instead of manual FD and socket handling and closing. * eventloopmgr: make timerfd use CFileDescriptor make the timerfd use CFileDescriptor instead of manual fd handling * opengl: make gbm fd use CFileDescriptor make the gbm rendernode fd use CFileDescriptor instead of manual fd handling * core: make selection source/offer use CFileDescriptor make data selection source and offers use CFileDescriptor and its associated use in xwm and protocols * protocols: convert protocols fd to CFileDescriptor make most fd handling use CFileDescriptor in protocols * shm: make SHMPool use CfileDescriptor make SHMPool use CFileDescriptor instead of manual fd handling. * opengl: duplicate fd with CFileDescriptor duplicate fenceFD with CFileDescriptor duplicate instead. * xwayland: make sockets and fds use CFileDescriptor instead of manual opening/closing make sockets and fds use CFileDescriptor * keybindmgr: make sockets and fds use CFileDescriptor make sockets and fds use CFileDescriptor instead of manual handling.
* ikeyboard: free xkbSymState in clearManuallyAllocdTom Englund2025-01-281-0/+4
| | | | | asan reported a leak on xkbSymState on destruction, because it wasnt beeing unrefed, was only being unrefed on calls to updateXKBTranslationState.
* keyboard: update group state on change for the sym resolve stateVaxry2024-10-081-0/+3
| | | | fixes #8038
* keybinds: fixup xkb_states for resolve_by_symvaxerski2024-10-081-0/+10
| | | | fixes #7750
* input: Fix modifier keys getting stuck if depressed during config reload (#7486)MahouShoujoMivutilde2024-08-231-1/+2
| | | | | | | | | | The problem: If `input:numlock_by_default = true`, depressed mods will get stuck on config reload; this takes effect after some other mod is pressed. This restores 0.41.2 behavior, with the exception that selected keyboard layout is preserved. https://github.com/hyprwm/Hyprland/blob/918d8340afd652b011b937d29d5eea0be08467f5/src/managers/input/InputManager.cpp#L993-L1002
* input: fix keyboard leds with multiple keyboards (#7079)Sungyoon Cho2024-07-281-3/+12
|
* input: Fix `hyprctl switchxkblayout` not actually changing layout (#7070)MahouShoujoMivutilde2024-07-271-0/+7
| | | | | | | | | | | | | | | | | | Emits `SModifiersEvent` in `updateModifiers()` Before the patch: Changing layout with `hyprctl switchxkblayout ...` results in: * active keymap in `hyprctl devices` is changed * no event * no layout is actually changed UNTIL you press one of the mod keys (Alt | Shift | Super | Ctrl) After: * active keymap in `hyprctl devices` changed * activelayout IPC event emitted * layout is changed This fixes https://github.com/hyprwm/Hyprland/issues/7044
* keyboard: properly update keymap state and fd on keymap changesVaxry2024-07-251-11/+31
| | | | | | needed for virtual keyboards that impose their own layouts. fixes #6991
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-23/+231
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-1/+1
| | | | | | | | | | | | | * core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* input: fix modifier and leds (#6062)Sungyoon Cho2024-05-141-1/+10
|
* cursor: move to a hyprland implVaxry2024-05-091-0/+4
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* xkb: check value correctly with xkb_state_layout_index_is_active() (#5925)Ikalco2024-05-071-2/+2
|
* keyboard: check for wlr() validity before accessingVaxry2024-05-041-1/+1
| | | | fixes #5873
* input: Introduce basic hyprland HID classesVaxry2024-05-031-0/+134
Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore.