mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
wayland: Commit empty frames if needed
If we have outstanding double-buffered state (other than the buffer itself), commit a frame even if its 'empty'.
This commit is contained in:
parent
1097e1349c
commit
f5308dfbec
@ -87,9 +87,8 @@ static void
|
|||||||
gdk_wayland_gl_context_empty_frame (GdkDrawContext *draw_context)
|
gdk_wayland_gl_context_empty_frame (GdkDrawContext *draw_context)
|
||||||
{
|
{
|
||||||
GdkSurface *surface = gdk_draw_context_get_surface (draw_context);
|
GdkSurface *surface = gdk_draw_context_get_surface (draw_context);
|
||||||
GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface);
|
|
||||||
|
|
||||||
if (impl->has_pending_subsurface_commits)
|
if (gdk_wayland_surface_needs_commit (surface))
|
||||||
{
|
{
|
||||||
gdk_wayland_surface_sync (surface);
|
gdk_wayland_surface_sync (surface);
|
||||||
gdk_wayland_surface_request_frame (surface);
|
gdk_wayland_surface_request_frame (surface);
|
||||||
|
Loading…
Reference in New Issue
Block a user