summaryrefslogtreecommitdiff
path: root/gtk/gtkoverlay.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-01-13 06:35:44 +0100
committerTimm Bäder <mail@baedert.org>2019-01-13 08:23:25 +0100
commit269535c844e9a6fdc1286472e72c0d1f8ff3123c (patch)
tree9b4ee9cd974633d2bd528217c8ff78a781919bf0 /gtk/gtkoverlay.c
parentc7f773f3e3fd2ec0606b625233833681035f9645 (diff)
downloadgtk+-269535c844e9a6fdc1286472e72c0d1f8ff3123c.tar.gz
overlay: Blur the clipped node, not clip the blurred node
Blurring is a lot more expensive than clipping, so try to blur less by clipping first.
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r--gtk/gtkoverlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 47a8bb295e..b356aa2ed4 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -728,8 +728,8 @@ gtk_overlay_snapshot (GtkWidget *widget,
gtk_widget_get_allocation (child, &alloc);
graphene_rect_init (&bounds, alloc.x, alloc.y, alloc.width, alloc.height);
- gtk_snapshot_push_clip (snapshot, &bounds);
gtk_snapshot_push_blur (snapshot, blur);
+ gtk_snapshot_push_clip (snapshot, &bounds);
gtk_snapshot_append_node (snapshot, main_widget_node);
gtk_snapshot_pop (snapshot);
gtk_snapshot_pop (snapshot);