forked from AuroraMiddleware/gtk
inspector: Don't offset layout overlay too much
We already do this earlier.
This commit is contained in:
parent
b41838a7fd
commit
8e8e869853
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user