From 82bb5d4e2235256c330214dc4a132317336de8fc Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 14 Jan 2016 16:57:40 +1100 Subject: [PATCH] gl/x11/navigation: add button press to the selected event mask Otherwise we won't get the button press events and GstNavigation fails. --- gst-libs/gst/gl/x11/gstglwindow_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c index 43387ac687..a3308252e9 100644 --- a/gst-libs/gst/gl/x11/gstglwindow_x11.c +++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c @@ -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);