diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c index bbb4e2d26e..ef32ad518a 100644 --- a/gdk/gdkframeclockidle.c +++ b/gdk/gdkframeclockidle.c @@ -236,7 +236,8 @@ gdk_frame_clock_idle_get_frame_time (GdkFrameClock *clock) /* can't change frame time during a paint */ if (priv->phase != GDK_FRAME_CLOCK_PHASE_NONE && - priv->phase != GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS) + priv->phase != GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS && + (priv->phase != GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT || priv->in_paint_idle)) return priv->smoothed_frame_time_base; /* Outside a paint, pick something smoothed close to now */