mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
surface: Remove in_update tracking
It's 2023, we use frame clocks now and don't have nested surface drawing anymore.
This commit is contained in:
parent
4154f87418
commit
040af44b00
@ -1338,8 +1338,6 @@ gdk_surface_process_updates_internal (GdkSurface *surface)
|
||||
/* Ensure the surface lives while updating it */
|
||||
g_object_ref (surface);
|
||||
|
||||
surface->in_update = TRUE;
|
||||
|
||||
/* If an update got queued during update processing, we can get a
|
||||
* surface in the update queue that has an empty update_area.
|
||||
* just ignore it.
|
||||
@ -1361,8 +1359,6 @@ gdk_surface_process_updates_internal (GdkSurface *surface)
|
||||
cairo_region_destroy (expose_region);
|
||||
}
|
||||
|
||||
surface->in_update = FALSE;
|
||||
|
||||
g_object_unref (surface);
|
||||
}
|
||||
|
||||
@ -1433,11 +1429,7 @@ gdk_surface_paint_on_clock (GdkFrameClock *clock,
|
||||
|
||||
if (surface->update_area &&
|
||||
!surface->update_freeze_count &&
|
||||
!gdk_surface_is_toplevel_frozen (surface) &&
|
||||
|
||||
/* Don't recurse into process_updates_internal, we'll
|
||||
* do the update later when idle instead. */
|
||||
!surface->in_update)
|
||||
!gdk_surface_is_toplevel_frozen (surface))
|
||||
{
|
||||
surface->pending_phases &= ~GDK_FRAME_CLOCK_PHASE_PAINT;
|
||||
gdk_surface_process_updates_internal (surface);
|
||||
|
@ -67,7 +67,6 @@ struct _GdkSurface
|
||||
|
||||
guint modal_hint : 1;
|
||||
guint destroyed : 2;
|
||||
guint in_update : 1;
|
||||
guint frame_clock_events_paused : 1;
|
||||
guint autohide : 1;
|
||||
guint shortcuts_inhibited : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user