Revert "waylandsink: Don't create throwaway empty regions"

This reverts commit 68fa80e831.

Some wayland servers, especially weston, only expect empty input
region as a request to disable input.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen 2019-09-02 09:22:10 +08:00 committed by Nicolas Dufresne
parent 82e23a27f7
commit b8946d06c7

View file

@ -190,6 +190,7 @@ static GstWlWindow *
gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
{
GstWlWindow *window;
struct wl_region *region;
window = g_object_new (GST_TYPE_WL_WINDOW, NULL);
window->display = g_object_ref (display);
@ -222,8 +223,13 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
}
/* do not accept input */
wl_surface_set_input_region (window->area_surface, NULL);
wl_surface_set_input_region (window->video_surface, NULL);
region = wl_compositor_create_region (display->compositor);
wl_surface_set_input_region (window->area_surface, region);
wl_region_destroy (region);
region = wl_compositor_create_region (display->compositor);
wl_surface_set_input_region (window->video_surface, region);
wl_region_destroy (region);
return window;
}