summaryrefslogtreecommitdiff
path: root/gtk/inspector/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/inspector/window.c')
-rw-r--r--gtk/inspector/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index a06454407f..16431a7657 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -605,12 +605,15 @@ gtk_inspector_prepare_render (GtkWidget *widget,
{
GtkSnapshot *snapshot;
GList *l;
+ double native_x, native_y;
snapshot = gtk_snapshot_new ();
gtk_snapshot_append_node (snapshot, node);
+ gtk_native_get_surface_transform (GTK_NATIVE (widget), &native_x, &native_y);
+
gtk_snapshot_save (snapshot);
- gtk_snapshot_transform (snapshot, gtk_widget_get_transform (widget));
+ gtk_snapshot_translate (snapshot, &(graphene_point_t) { native_x, native_y });
for (l = iw->overlays; l; l = l->next)
{