summaryrefslogtreecommitdiff
path: root/src/managers/input
Commit message (Collapse)AuthorAgeFilesLines
...
* core: move internal structures to monitor pointers (#8266)Vaxry2024-10-272-4/+3
|
* internal: optimize cursor move a bit (#8264)Tom Englund2024-10-271-22/+13
| | | | | | | | | | | | | | | | | | | | | * window: inline and const getWindowMainSurfaceBox getWindowMainSurfaceBox gets called a lot of times from deep down from mousemoveunified, profiling mousemoveunified it spends quite a lot of cpu time in here, let the compiler optimize the call to getWindowMainSurfaceBox by inlining and making it const. reducing the overhead. * inputmgr: return early and use std::any_of return early in mousemoveunified to reduce the amount of unnecessery calls to various pointers when not needed, also make isconstrained use std::any_of instead of for loop to use the STL optimized paths with hopes and dreams marginally faster. * decoration: return early, reduce temporar copy return earlier and reduce the temp copies by using one .lock instead of two
* internal: Remove some unused lambda captures (#8218)Honkazel2024-10-241-1/+1
|
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-195-15/+15
| | | | | * move monitors to sp * XD
* IME: Fixup IME popup candidate windows position when scale is not 1.0 (#8117)fanlumaster(Fany Full)2024-10-141-2/+2
|
* input: Fix VRR for constrained cursors (#6877)UjinT342024-10-122-3/+19
|
* config/layout: nuke no_gaps_when_only (#8072)Vaxry2024-10-111-1/+0
|
* internal: nuke wlsignal and relatedVaxry2024-09-242-2/+0
| | | | old semi-wrappers for wl_signal, they are no longer used
* textinput: don't reset if ti isn't enabled (#7798)Sungyoon Cho2024-09-151-0/+7
|
* textinput: fix tiv3 leave (#7761)Sungyoon Cho2024-09-121-10/+14
|
* textinput: handle IME resetting (#7731)Sungyoon Cho2024-09-104-13/+27
|
* input: move dmps activation to input listeners (#7721)Maximilian Seidler2024-09-091-12/+9
|
* tiv1: fix deleting first character (#7716)Sungyoon Cho2024-09-091-1/+1
|
* input: kb focus mouse focused window if unset (#7666)outfoxxed2024-09-061-0/+3
| | | | | Normally it shouldn't be possible to have mouse focus with no kb focus, but it does happen, and when it does this makes it considerably less annoying.
* input: move idle notify to input handlers (#7659)Maximilian Seidler2024-09-064-24/+9
| | | | | | | | | * Revert "input: don't emit idle activity when calling simulateMouseMovement (#7649)" This reverts commit ea10592ad3c861ff2ce73ad7785bcb5a45a9e400. * input: move idle notify calls to input event listeners * input: don't post idle activity when keyboard is not enabled
* textinput: fix ime activation in some edge cases (#7660)Sungyoon Cho2024-09-051-12/+34
| | | | | * textinput: clear ti3 state when focused surface gets destroyed * textinput: send enter to newly created ti in focus
* sessionLock: ensure sls focus in some edge cases (#7647)Maximilian Seidler2024-09-041-28/+28
| | | | | | | | | | | | | | | | * input: return early in mouseMoveUnified when the session is locked * sessionLock: make make a commit an opportunity to focus session lock surfaces * compositor: allow resetting focus when session is locked * input: remove redundant PMONITOR checks PMONITOR is checked above * input: check isSessionLocked earlier in mouseMoveUnified A bit of reordering, so that we don't call some stuff that is irrelevant when the session is locked
* input: don't emit idle activity when calling simulateMouseMovement (#7649)Maximilian Seidler2024-09-042-4/+4
|
* textinput: don't deactivate ime if another ti is focused (#7617)Sungyoon Cho2024-09-011-2/+4
|
* textinput: send deactivate to ime on destory ti (#7614)Sungyoon Cho2024-09-011-5/+4
|
* window/xwayland: minor property cleanupVaxry2024-08-301-2/+2
| | | | fixes #6921
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-264-19/+19
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-264-9/+9
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* input: Fix disabling tap-to-click (#7304)Sami Liedes2024-08-181-2/+3
| | | | | * Allow disabling tap-to-click * Style fix
* IPC: Add config descriptions (#7377)Vaxry2024-08-171-8/+3
| | | | | | | Thanks @gulafaran for the work --- Co-authored-by: @gulafaran
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-082-2/+2
| | | | | | | | | | | | | | | | | | | | overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
* input: fix leds on kb creation (#7206)Ikalco2024-08-071-0/+2
|
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-313-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* protocols: move text-input-v1 to hyprwayland-scanner (#7096)Ikalco2024-07-294-68/+49
| | | | | * move text-input-v1 to hyprwayland-scanner * vro
* input: fix keyboard leds with multiple keyboards (#7079)Sungyoon Cho2024-07-281-1/+8
|
* input: unify removing currentlyDraggedWindow (#7071)MightyPlaza2024-07-271-1/+1
| | | | | | | | modified: src/desktop/Window.cpp modified: src/events/Windows.cpp modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/InputManager.cpp
* input: refocus last window on keyboard unfocusable surfacesvaxerski2024-07-271-0/+7
| | | | fixes #4460
* touch: fix touch swipe invert config (#7014)Leon2024-07-241-1/+1
|
* debug: get rid of useless 1s in logs (#6969)Ikalco2024-07-222-5/+5
| | | | | * get rid of 1s in logs lol * replace WLR with AQ in logs
* touch: set lastInputTouch on every eventVaxry2024-07-221-2/+6
|
* input: fix invalid usage of dev in setTouchDeviceConfigsVaxry2024-07-211-3/+3
| | | | ref #6943
* touch: add touch swipe invert config (#6940)khachbe2024-07-211-1/+1
|
* Core: Move to aquamarine (#6608)Vaxry2024-07-213-197/+111
| | | | | | | | | | | | | | 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>
* input: Emulate discrete scrolling from v120 events (#6881)Agent00Ming2024-07-182-3/+47
| | | | | | | * seat: avoid sending axis_stop() when source is wheel * fix rounding for absolute discrete values greater than 1 Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
* style: fix clang-formatVaxry2024-07-132-8/+4
|
* inputmgr: ensure we dont divide by zero (#6713)Tom Englund2024-06-301-1/+1
| | | | | some weird combination of scrolling/nesting hyprland and closing a window i managed to divide by zero here, reported by ubsan. add a check to ensure we dont hit UB.
* input: fix capabilities enum types passedVaxry2024-06-291-8/+1
| | | | | | hyprland down to the seat protocol impl expects IHID capabilities, not WL_ ones ref #6702 #6196
* ime-relay: fix crash on nullptr surface focusVaxry2024-06-251-0/+3
|
* core: add ability to select previous workspace per monitor (#6598)Alexander2024-06-221-7/+5
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* core: Move to hyprutils for MathVaxry2024-06-193-22/+22
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* vrr: add option to fix mouse breaking vrr (#6483)UjinT342024-06-141-2/+4
| | | | | | | | | | | | | | | * option to fix mouse breaking vrr * skip damage on mouse move * remove this-> & cleanup * add cursor:min_refresh_rate to avoid cursor freezing * run clang-format --------- Co-authored-by: UjinT34 <ujin@uvpn.ru>
* input: fallback to main surface if not found on windowVaxry2024-06-121-0/+4
| | | | fixes #6421
* seatmgr: fix missing nullcheck in updateActiveKeyboardDataVaxry2024-06-121-5/+13
| | | | | | sometimes we may set a keyboard that's about-to-be-deleted, we might as well check for that additionally avoid setting null keyboards altogether
* layer: don't close special ws when restoring focus (#6424)MightyPlaza2024-06-111-1/+1
| | | | | modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/managers/input/InputManager.cpp
* layershell: Fix keyboard focus grabs (#4968) (#6394)outfoxxed2024-06-112-1/+37
|