diff options
author | wm4 <wm4@nowhere> | 2016-07-08 16:36:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-08 16:36:53 +0200 |
commit | 35be389031fd8c7bb555d9142d2ea0b04ee70fe6 (patch) | |
tree | 231a3874167ef69f6ab8920695a6e85fc1c10f71 /video/out/x11_common.c | |
parent | 885e99131259094a829c4023719ebee979aa72f3 (diff) | |
download | mpv-35be389031fd8c7bb555d9142d2ea0b04ee70fe6.tar.bz2 mpv-35be389031fd8c7bb555d9142d2ea0b04ee70fe6.tar.xz |
x11: add missing FocusChangeMask
So we actually get FocusOut events. Disables key repeat when losing
focus while a key is down.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index b8c92100db..ce94679cd0 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1506,7 +1506,7 @@ static void vo_x11_map_window(struct vo *vo, struct mp_rect rc) // map window int events = StructureNotifyMask | ExposureMask | PropertyChangeMask | - LeaveWindowMask | EnterWindowMask; + LeaveWindowMask | EnterWindowMask | FocusChangeMask; if (mp_input_mouse_enabled(x11->input_ctx)) events |= PointerMotionMask | ButtonPressMask | ButtonReleaseMask; if (mp_input_vo_keyboard_enabled(x11->input_ctx)) |