]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: add keyboard_get_all_modifiers()
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 10 Jan 2025 10:02:58 +0000 (11:02 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 12 Jan 2025 21:28:37 +0000 (06:28 +0900)
commit06271900607d89b8e407a2576620de36981b77cb
treeb17d3a7ac690ed2d7b9ab1a9933afd962350f7a1
parent577c24306fe630b8b4ec7b3cefed86511c550cdd
keyboard: add keyboard_get_all_modifiers()

And make mousebind handlers use that one.
Also remove keyboard_any_modifiers_pressed() and replace its usage
with the new function.

Without this patch we would only request the modifier state of the
keyboard group which makes mousebinds involving keyboard modifiers
break for virtual keyboards like when using wayvnc. Same story for
hiding the workspace overlay or snapping to regions.

Fixes: #2511
include/input/keyboard.h
src/input/cursor.c
src/input/keyboard.c
src/interactive.c
src/regions.c
src/workspaces.c