[gtk/x11-dnd-fixes: 1/3] x11: Export gdk_x11_surface_get_root_coords privately
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/x11-dnd-fixes: 1/3] x11: Export gdk_x11_surface_get_root_coords privately
- Date: Sun, 23 Feb 2020 00:11:21 +0000 (UTC)
commit 14122d1acbcbc43e093758df17409b1564dc81bb
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 22 19:09:18 2020 -0500
x11: Export gdk_x11_surface_get_root_coords privately
This lets us avoid a roundtrip through the surface vfuncs.
gdk/x11/gdkprivate-x11.h | 6 ++++++
gdk/x11/gdksurface-x11.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]