Commit f3dd4a6f authored by Benjamin Otte's avatar Benjamin Otte Committed by Paolo Borelli
Browse files

widget: queue a redraw only if resize highlighting is enabled

e8aa9b04 introduced a new debug mode
that highlights resizes. Unfortunately it has the side effect of
always queueing redraws even when the debug mode is not enabled.
Make the redraw conditional.
parent d14cdf29
......@@ -5959,8 +5959,11 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget,
gtk_widget_push_verify_invariants (widget);
priv->highlight_resize = TRUE;
gtk_widget_queue_draw (widget);
priv->highlight_resize = TRUE;
gtk_widget_queue_draw (widget);
if (gtk_widget_get_resize_needed (widget))
......@@ -7005,8 +7008,7 @@ gtk_widget_draw_internal (GtkWidget *widget,
cairo_restore (cr);
if (GTK_DISPLAY_DEBUG_CHECK (gtk_widget_get_display (widget), RESIZE) &&
if (widget->priv->highlight_resize)
GtkAllocation alloc;
gtk_widget_get_allocation (widget, &alloc);
......@@ -7018,7 +7020,6 @@ gtk_widget_draw_internal (GtkWidget *widget,
gtk_widget_queue_draw (widget);
widget->priv->highlight_resize = FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment