waylandsink: set an empty input region on the video surface
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 11 Mar 2014 17:47:52 +0000 (19:47 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:25 +0000 (13:51 +0200)
ext/wayland/wlwindow.c

index 433ed32..b79c01a 100644 (file)
@@ -120,6 +120,7 @@ gst_wl_window_new_from_surface (GstWlDisplay * display,
     struct wl_surface * surface, gint width, gint height)
 {
   GstWlWindow *window;
+  struct wl_region *region;
 
   g_return_val_if_fail (surface != NULL, NULL);
 
@@ -133,6 +134,11 @@ gst_wl_window_new_from_surface (GstWlDisplay * display,
 
   window->viewport = wl_scaler_get_viewport (display->scaler, window->surface);
 
+  /* do not accept input */
+  region = wl_compositor_create_region (display->compositor);
+  wl_surface_set_input_region (surface, region);
+  wl_region_destroy (region);
+
   return window;
 }