mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-16 04:54:12 +00:00
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:
parent
82e23a27f7
commit
b8946d06c7
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue