[gtk/wip/baedert/resize2: 323/325] frameclockidle: Remove layout loop
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/resize2: 323/325] frameclockidle: Remove layout loop
- Date: Wed, 3 Jun 2020 06:23:52 +0000 (UTC)
commit 46cd4569bfb526ecec094a7c56257fe460688b86
Author: Timm Bäder <mail baedert org>
Date: Mon May 25 19:45:24 2020 +0200
frameclockidle: Remove layout loop
gdk/gdkframeclockidle.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c
index ef32ad518a..c40ec4a13f 100644
--- a/gdk/gdkframeclockidle.c
+++ b/gdk/gdkframeclockidle.c
@@ -471,7 +471,6 @@ gdk_frame_clock_paint_idle (void *data)
case GDK_FRAME_CLOCK_PHASE_LAYOUT:
if (priv->freeze_count == 0)
{
- int iter;
#ifdef G_ENABLE_DEBUG
if (GDK_DEBUG_CHECK (FRAMES))
{
@@ -482,20 +481,8 @@ gdk_frame_clock_paint_idle (void *data)
#endif
priv->phase = GDK_FRAME_CLOCK_PHASE_LAYOUT;
- /* We loop in the layout phase, because we don't want to progress
- * into the paint phase with invalid size allocations. This may
- * happen in some situation like races between user window
- * resizes and natural size changes.
- */
- iter = 0;
- while ((priv->requested & GDK_FRAME_CLOCK_PHASE_LAYOUT) &&
- priv->freeze_count == 0 && iter++ < 4)
- {
- priv->requested &= ~GDK_FRAME_CLOCK_PHASE_LAYOUT;
- _gdk_frame_clock_emit_layout (clock);
- }
- if (iter == 5)
- g_warning ("gdk-frame-clock: layout continuously requested, giving up after 4 tries");
+ priv->requested &= ~GDK_FRAME_CLOCK_PHASE_LAYOUT;
+ _gdk_frame_clock_emit_layout (clock);
}
G_GNUC_FALLTHROUGH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]