From d098cd5865ee3d53ec4978d6e2b43245c80cdfce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 13 Jan 2019 05:41:43 +0100 Subject: [PATCH] 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 --- gtk/gtkoverlay.c | 2 -- 1 file changed, 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); }