summaryrefslogtreecommitdiff
path: root/src/managers/input
Commit message (Collapse)AuthorAgeFilesLines
...
* core: move to hyprutils for utils (#6385)Vaxry2024-06-114-4/+4
| | | | | | | | | | | | | * 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>
* sessionLock: fix focus not being tied to mouse (#6414)outfoxxed2024-06-111-4/+7
|
* input: fix virtual devices not updating capabilities (#6366)void0red2024-06-081-6/+10
| | | Signed-off-by: void0red <void0red@gmail.com>
* wayland/core: move to new impl (#6268)Vaxry2024-06-0811-139/+140
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* gestures: Add gestures:workspace_swipe_min_fingers option (#6342)John M. Harris, Jr2024-06-071-4/+5
| | | | | | | | | | When gestures:workspace_swipe_min_fingers is enabled, gestures:workspace_swipe_fingers is considered to be the minimum number of fingers required to swipe. This behavior is more similar to sway and macOS's default behavior. For example, this allows you to set workspace_swipe_fingers to 3, but swipe with 4 or more fingers instead of 3.
* seat: discrete round away from zero + high res scrolling (#6317)Agent00Ming2024-06-031-2/+4
| | | | | | | | * Discrete scrolling round away from zero e.deltaDiscrete can be multiples of 30 instead of the usual 120 causing the rounded value to be 0 when too small causing erratic scrolling. * Send value120 alongside discrete Fixes sensitivity issues for clients that support value120 axis events
* xwayland: move to hyprland impl (#6086)Vaxry2024-05-251-4/+14
|
* keybinds: Added new dispatcher (sendshortcut) (#6174)Can2024-05-241-1/+3
|
* input: find surface pos correctly when mouse drag is activeVaxry2024-05-181-17/+20
| | | | fixes #6144
* seat: update keymap/repeat info on keymap events from keebsVaxry2024-05-171-0/+3
| | | | fixes #6114
* seat: Send discrete event when axis source is scroll wheel (#6103)Agent00Ming2024-05-161-1/+1
| | | | | | modified: src/managers/SeatManager.cpp modified: src/managers/input/InputManager.cpp Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
* inputmgr: send pointer motion on ffm != 1Vaxry2024-05-151-0/+3
| | | | fixes #6077
* wl-data-device: move to hyprland implVaxry2024-05-142-25/+6
|
* seatmgr: Add a grab classVaxry2024-05-142-2/+30
|
* xdg-shell: move to new implVaxry2024-05-141-3/+3
|
* wl_seat: move to hyprland implVaxry2024-05-144-86/+71
|
* input: fix modifier and leds (#6062)Sungyoon Cho2024-05-142-6/+23
|
* config: move various cursor-related vars to cursor:Vaxry2024-05-091-1/+1
|
* layer-shell: move to new implVaxry2024-05-093-5/+6
| | | | Also bumps the hw-s dep
* virtual-keyboard: release keys before destroyVaxry2024-05-091-0/+2
|
* Tablet: move to new implVaxry2024-05-093-281/+331
| | | | Ring and strip are not implemented. Will I implement this? God fucking knows. Nobody seems to have that anyways.
* cursor: move to a hyprland implVaxry2024-05-095-106/+102
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-058-46/+44
| | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
* idle-inhibit: enable idle inhibitor if no hl surface is associated (#5882)Sungyoon Cho2024-05-052-5/+7
|
* idle-inhibit: fix and cleanup visibility logicVaxry2024-05-042-14/+21
| | | | fixes #5878
* input: ignore destroyed devices in static eventsVaxry2024-05-041-0/+12
| | | | fixes #5863
* input: Introduce basic hyprland HID classesVaxry2024-05-033-286/+213
| | | | | | 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.
* inputmgr: dont double free on hotplug (#5855)Tom Englund2024-05-031-0/+1
| | | | | | | | | | | | | | * inputmgr: dont double free on hotplug since we are also unrefing the state on hotplugging the keyboard set the state to nullptr so the destructor if case actually catches its been already freed. * keybindgmgr: dont double free on layout switching d5bf153 added keymap unref at the end of updateXKBTranslationState to not leak it when exiting, only it causes updateXKBTranslationState to double free when changing layouts. since its already freed. remove the unneeded extra xkb_keymap_unref.
* virtual-pointer: move to new implVaxry2024-05-032-3/+38
|
* virtual-keyboard: destroy on vdestroy eventVaxry2024-05-031-0/+3
|
* virtual-keyboard: move to new implVaxry2024-05-032-14/+22
|
* ime-v2: move to new implVaxry2024-05-017-223/+133
|
* session-lock: move to new implVaxry2024-04-301-1/+2
|
* layerSurface: refactor/move to a memory-safe implVaxry2024-04-303-19/+19
| | | | | Makes all the pointers smart to avoid memory issues Refactors layerSurface code to live inside desktop/layersurface
* ext-idle-notify: move to new implVaxry2024-04-294-18/+22
|
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-275-47/+49
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* pointer-constraints: move to new implVaxry2024-04-272-19/+31
|
* swipe: fix crashes with invalid distanceVaxry2024-04-262-28/+31
| | | | fixes #5758
* text-input-v3: move to new implVaxry2024-04-254-60/+91
|
* idle-inhibit: Always recheck idle inhibitors on creation and deletion (#5738)zakk42232024-04-251-13/+12
| | | Formatting
* pointer-gestures: move to new implVaxry2024-04-242-11/+0
|
* input: fix active keyboard for seat after destroying one (#5725)drendog2024-04-231-10/+9
| | | | | * fix: manage active keyboard for seat after destroying one * chore: clang-format
* relative-pointer: move to new implVaxry2024-04-211-5/+4
|
* idle-inhibit: move to new implVaxry2024-04-213-46/+35
|
* input: check for focused_client being null before reading its clientVaxry2024-04-211-0/+3
| | | | ref #5673
* cursor-shape: move to new implVaxry2024-04-212-18/+30
|
* HookSystem: improve callback safetyVaxry2024-04-201-1/+1
|
* Fractional-scale: move to new implVaxry2024-04-201-1/+2
|
* input: send an empty relative event after constraint motion eventsVaxry2024-04-151-0/+1
| | | | ref #4015
* inhibitor: always destroy on window unmapVaxry2024-04-121-5/+16
| | | | ref #5555