waylandsink: set an empty input region on the video surface

This commit is contained in:
George Kiagiadakis 2014-03-11 19:47:52 +02:00
parent 94d02288d0
commit 162dbd412c

View 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;
}