summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-01-13 05:41:43 +0100
committerTimm Bäder <mail@baedert.org>2019-01-13 08:23:25 +0100
commitd098cd5865ee3d53ec4978d6e2b43245c80cdfce (patch)
tree7bd4f6ef898fa3fe438d244f01b431c0f723a265
parent4dc8ab58a386eac7f77df1ef22ad176425a909ed (diff)
downloadgtk+-d098cd5865ee3d53ec4978d6e2b43245c80cdfce.tar.gz
overlay: Don't offset the main window snapshot
We need the node without an offset applied. Fixes the rose picture being offset in tests/testoverlay
-rw-r--r--gtk/gtkoverlay.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 10fc2a8250..86b2004f2e 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -722,9 +722,7 @@ gtk_overlay_snapshot (GtkWidget *widget,
GtkSnapshot *child_snapshot;
child_snapshot = gtk_snapshot_new ();
- gtk_snapshot_offset (child_snapshot, main_alloc.x, main_alloc.y);
gtk_widget_snapshot (main_widget, child_snapshot);
- gtk_snapshot_offset (child_snapshot, -main_alloc.x, -main_alloc.y);
main_widget_node = gtk_snapshot_free_to_node (child_snapshot);
}