mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
waylandsink: set an empty input region on the video surface
This commit is contained in:
parent
94d02288d0
commit
162dbd412c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue