mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Avoid loop in paint update cycle
Commit 1db87c897f
accidentally removed
a check for !in_paint_idle in maybe_start_idle which causes us
to create a paint loop whenever something requests a phase
inside the paint_idle.
This commit is contained in:
parent
de08716526
commit
3c690c52ba
@ -247,7 +247,8 @@ maybe_start_idle (GdkFrameClockIdle *clock_idle)
|
||||
(GDestroyNotify) g_object_unref);
|
||||
}
|
||||
|
||||
if (priv->paint_idle_id == 0 && RUN_PAINT_IDLE (priv))
|
||||
if (!priv->in_paint_idle &&
|
||||
priv->paint_idle_id == 0 && RUN_PAINT_IDLE (priv))
|
||||
{
|
||||
priv->paint_idle_id = gdk_threads_add_timeout_full (GDK_PRIORITY_REDRAW,
|
||||
min_interval,
|
||||
|
Loading…
Reference in New Issue
Block a user