inspector: Don't offset layout overlay too much
authorTimm Bäder <mail@baedert.org>
Wed, 20 May 2020 07:10:14 +0000 (09:10 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 20 May 2020 15:06:54 +0000 (17:06 +0200)
We already do this earlier.

gtk/inspector/layoutoverlay.c

index 59900c603c592f936c264f032eafb68c171cc1d1..b7082fd8ab916fae8d273ebb06b6f52bd2a1a85d 100644 (file)
@@ -157,13 +157,7 @@ gtk_layout_overlay_snapshot (GtkInspectorOverlay *overlay,
                              GskRenderNode       *node,
                              GtkWidget           *widget)
 {
-  double nx, ny;
-
-  gtk_native_get_surface_transform (GTK_NATIVE (widget), &nx, &ny);
-  gtk_snapshot_save (snapshot);
-  gtk_snapshot_translate (snapshot, &(graphene_point_t){ nx, ny });
   recurse_child_widgets (widget, snapshot);
-  gtk_snapshot_restore (snapshot);
 }
 
 static void