[gtk] overlay: Don't offset the main window snapshot



commit d098cd5865ee3d53ec4978d6e2b43245c80cdfce
Author: Timm Bäder <mail baedert org>
Date:   Sun Jan 13 05:41:43 2019 +0100

    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);
             }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]