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
This commit is contained in:
Consolatis 2025-01-10 11:02:58 +01:00 committed by Hiroaki Yamamoto
parent 577c24306f
commit 0627190060
6 changed files with 31 additions and 26 deletions

View file

@ -22,6 +22,6 @@ void keyboard_update_layout(struct seat *seat, xkb_layout_index_t layout);
void keyboard_cancel_keybind_repeat(struct keyboard *keyboard);
void keyboard_cancel_all_keybind_repeats(struct seat *seat);
bool keyboard_any_modifiers_pressed(struct wlr_keyboard *keyboard);
uint32_t keyboard_get_all_modifiers(struct seat *seat);
#endif /* LABWC_KEYBOARD_H */