mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Use libxkbcommon #defines for modifiers
This commit is contained in:
parent
58eec36f68
commit
23c03ad981
3 changed files with 10 additions and 17 deletions
|
|
@ -911,7 +911,7 @@ window_handle_key(void *data, struct wl_input_device *input_device,
|
|||
return;
|
||||
|
||||
level = 0;
|
||||
if (input->modifiers & WINDOW_MODIFIER_SHIFT &&
|
||||
if (input->modifiers & XKB_COMMON_SHIFT_MASK &&
|
||||
XkbKeyGroupWidth(d->xkb, code, 0) > 1)
|
||||
level = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue