mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
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:
parent
577c24306f
commit
0627190060
6 changed files with 31 additions and 26 deletions
|
|
@ -95,8 +95,7 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
|
|||
}
|
||||
|
||||
/* Prevent region snapping when just moving via A-Left mousebind */
|
||||
struct wlr_keyboard *keyboard = &seat->keyboard_group->keyboard;
|
||||
seat->region_prevent_snap = keyboard_any_modifiers_pressed(keyboard);
|
||||
seat->region_prevent_snap = keyboard_get_all_modifiers(seat);
|
||||
|
||||
cursor_shape = LAB_CURSOR_GRAB;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue