gl/x11/navigation: add button press to the selected event mask

Otherwise we won't get the button press events and GstNavigation fails.
This commit is contained in:
Matthew Waters 2016-01-14 16:57:40 +11:00
parent bef0a46c5d
commit 82bb5d4e22

View file

@ -500,7 +500,8 @@ gst_gl_window_x11_handle_events (GstGLWindow * window, gboolean handle_events)
if (handle_events) { if (handle_events) {
XSelectInput (window_x11->device, window_x11->internal_win_id, XSelectInput (window_x11->device, window_x11->internal_win_id,
StructureNotifyMask | ExposureMask | VisibilityChangeMask | StructureNotifyMask | ExposureMask | VisibilityChangeMask |
PointerMotionMask | KeyPressMask | KeyReleaseMask); PointerMotionMask | KeyPressMask | KeyReleaseMask | ButtonPressMask |
ButtonReleaseMask);
} else { } else {
XSelectInput (window_x11->device, window_x11->internal_win_id, XSelectInput (window_x11->device, window_x11->internal_win_id,
StructureNotifyMask | ExposureMask | VisibilityChangeMask); StructureNotifyMask | ExposureMask | VisibilityChangeMask);