From 434b08fe2498017822ea22be5c5e1b8d9b434cd6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 5 Mar 2016 12:15:42 -0500 Subject: [PATCH] status icon: Prevent size dithering We're seeing loops where the size of some status icons constantly dithers between 24 and 25. Since I couldn't track down exactly where the one extra pixel comes from, just stop reacting to single-pixel size changes. https://bugzilla.gnome.org/show_bug.cgi?id=758893 --- gtk/deprecated/gtkstatusicon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c index 29ccf77d23..a29c1b7ede 100644 --- a/gtk/deprecated/gtkstatusicon.c +++ b/gtk/deprecated/gtkstatusicon.c @@ -1465,7 +1465,7 @@ gtk_status_icon_size_allocate (GtkStatusIcon *status_icon, else size = allocation->width; - if (priv->size != size) + if (priv->size - 1 > size || priv->size + 1 < size) { priv->size = size;