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 committed by Tim-Philipp Müller
parent c2a6c97a1d
commit d5913f3048

View file

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