Revert "waylandsink: Don't create throwaway empty regions"
This reverts commit 68fa80e83118a7a2be037eb235e5d211912dee0e. 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
@ -190,6 +190,7 @@ static GstWlWindow *
|
|||||||
gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
|
gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
|
||||||
{
|
{
|
||||||
GstWlWindow *window;
|
GstWlWindow *window;
|
||||||
|
struct wl_region *region;
|
||||||
|
|
||||||
window = g_object_new (GST_TYPE_WL_WINDOW, NULL);
|
window = g_object_new (GST_TYPE_WL_WINDOW, NULL);
|
||||||
window->display = g_object_ref (display);
|
window->display = g_object_ref (display);
|
||||||
@ -222,8 +223,13 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* do not accept input */
|
/* do not accept input */
|
||||||
wl_surface_set_input_region (window->area_surface, NULL);
|
region = wl_compositor_create_region (display->compositor);
|
||||||
wl_surface_set_input_region (window->video_surface, NULL);
|
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;
|
return window;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user