x11: Export gdk_x11_surface_get_root_coords privately

This lets us avoid a roundtrip through the surface vfuncs.
This commit is contained in:
Matthias Clasen 2020-02-22 19:09:18 -05:00
parent f93d0f8fb5
commit 14122d1acb
2 changed files with 7 additions and 1 deletions

View File

@ -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,

View File

@ -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,