diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 433ed32899..b79c01aad5 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -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; }