summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2024-01-13 21:35:46 +0530
committerDudemanguy <random342@airmail.cc>2024-01-13 17:10:52 +0000
commitbd35dc8ce71941b6bbd0839570ad0e66b0a85d3d (patch)
tree0e0472fdc823c50df715fe7674a45ec17c48ddba /video
parent02533e592827a1ec9ddf2433b7f87c5f72b75281 (diff)
downloadmpv-bd35dc8ce71941b6bbd0839570ad0e66b0a85d3d.tar.bz2
mpv-bd35dc8ce71941b6bbd0839570ad0e66b0a85d3d.tar.xz
wayland: accept active modifiers even if they aren't physically held
We don't care about the physical state of keys, only if they are effective or not and whether they should affect key processing.
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 02e0e404b5..a19f9c1c03 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1584,7 +1584,7 @@ static int get_mods(struct vo_wayland_state *wl)
xkb_mod_index_t index = xkb_keymap_mod_get_index(wl->xkb_keymap, mod_names[n]);
if (index != XKB_MOD_INVALID
&& xkb_state_mod_index_is_active(wl->xkb_state, index,
- XKB_STATE_MODS_DEPRESSED))
+ XKB_STATE_MODS_EFFECTIVE))
modifiers |= mods[n];
}
return modifiers;