[gtk/wip/baedert/for-master] widget: don't queue a redraw on css transform changes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] widget: don't queue a redraw on css transform changes
- Date: Sat, 6 Jun 2020 13:40:30 +0000 (UTC)
commit 13b992ddd82cd1706f6c8b807322684b42ff0aad
Author: Timm Bäder <mail baedert org>
Date: Sat Jun 6 15:22:08 2020 +0200
widget: don't queue a redraw on css transform changes
gtk/gtkwidget.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index be2b26f9d8..83b23f2b3d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4743,7 +4743,9 @@ gtk_widget_real_css_changed (GtkWidget *widget,
}
else if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_TRANSFORM))
{
- gtk_widget_queue_allocate (widget);
+ /* queue_allocate() without the redraw */
+ gtk_widget_set_alloc_needed (widget);
+ gtk_widget_queue_draw (priv->parent);
}
else if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_REDRAW) ||
(has_text && gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_TEXT_CONTENT)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]