diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-03-11 19:47:52 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-06-17 13:51:25 +0200 |
commit | 162dbd412cf8d5ef5252f3b601fab0609aeae346 (patch) | |
tree | 0aab7c4dca99702f50cea6247c5b500fed0995e8 | |
parent | 94d02288d0bbfe2941a101ded79700fb50b66303 (diff) | |
download | gstreamer-plugins-bad-162dbd412cf8d5ef5252f3b601fab0609aeae346.tar.gz |
waylandsink: set an empty input region on the video surface
-rw-r--r-- | ext/wayland/wlwindow.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 433ed3289..b79c01aad 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; } |