summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-22 19:09:18 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-22 19:10:16 -0500
commit14122d1acbcbc43e093758df17409b1564dc81bb (patch)
tree9d9bfe32354ad2bb0972715197387e1f26d4a2ea
parentf93d0f8fb5e6660126e5b4c35b2b9d8d5f189816 (diff)
downloadgtk+-14122d1acbcbc43e093758df17409b1564dc81bb.tar.gz
x11: Export gdk_x11_surface_get_root_coords privately
This lets us avoid a roundtrip through the surface vfuncs.
-rw-r--r--gdk/x11/gdkprivate-x11.h6
-rw-r--r--gdk/x11/gdksurface-x11.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index 0f8ca87765..69a1248b8a 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -230,6 +230,12 @@ GdkDrag * _gdk_x11_surface_drag_begin (GdkSurface *window,
gint dx,
gint dy);
+void gdk_x11_surface_get_root_coords (GdkSurface *surface,
+ gint x,
+ gint y,
+ gint *root_x,
+ gint *root_y);
+
GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display,
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 7c4ce1199e..8d052e9d3d 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -2402,7 +2402,7 @@ gdk_x11_surface_get_geometry (GdkSurface *surface,
}
}
-static void
+void
gdk_x11_surface_get_root_coords (GdkSurface *surface,
gint x,
gint y,