gl/x11/navigation: add button press to the selected event mask
authorMatthew Waters <matthew@centricular.com>
Thu, 14 Jan 2016 05:57:40 +0000 (16:57 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:14 +0000 (19:32 +0000)
Otherwise we won't get the button press events and GstNavigation fails.

gst-libs/gst/gl/x11/gstglwindow_x11.c

index 43387ac687650bf1df69289e0c22215d8ecd09ad..a3308252e9b0b9fedd5470eacb32d3d4f5b63bf3 100644 (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);