summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-11-07 13:47:26 -0600
committerDudemanguy <random342@airmail.cc>2020-11-08 15:59:09 +0000
commitcf00b0b990fce8ab128034fc4084d86e92cfbd4f (patch)
treea2c709f8794f2d3a833deea957a402f3f171b765 /video/out/wayland_common.h
parentdae6b1be967b6767409005e6edc7a8021fd98fe8 (diff)
downloadmpv-cf00b0b990fce8ab128034fc4084d86e92cfbd4f.tar.bz2
mpv-cf00b0b990fce8ab128034fc4084d86e92cfbd4f.tar.xz
wayland: check for modifier keys on pointer events
The pointer button event had no code to handle any modifier keys. So this meant input combinations like Shift+MTBN_LEFT did not work. Fix this by ripping out the modifier-checking code in keyboard key event to a separate function and using it for both the keyboard and mouse events. In the case of the mouse, it is possible that the keyboard may not exist so be sure to check before trying to get any modifiers. Fixes #8239.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index f2c1a31f66..41edcf5d2f 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -119,6 +119,7 @@ struct vo_wayland_state {
int64_t vsync_duration;
/* Input */
+ uint32_t keyboard_code;
struct wl_seat *seat;
struct wl_pointer *pointer;
struct wl_touch *touch;