mirror of https://github.com/mpv-player/mpv
x11: add missing FocusChangeMask
So we actually get FocusOut events. Disables key repeat when losing focus while a key is down.
This commit is contained in:
parent
885e991312
commit
35be389031
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue