summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-29 02:05:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-05-29 18:04:08 +0000
commitd515c43dce6ceee629b71b98e4db1d3a3ba1ef5a (patch)
treec714e5fd9b7095a0a8d5347532707cc324eee8c8 /gdk/gdkdisplay.c
parent879f22fd27ee90cf6ce770c8bc8092072cb2f0ed (diff)
downloadgtk+-d515c43dce6ceee629b71b98e4db1d3a3ba1ef5a.tar.gz
Make gdk_surface_get_origin internal
We still use this function inside gdk in a number of places, so keep it around.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 4244490894..2f5d729f79 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1646,6 +1646,7 @@ gdk_display_get_monitor_at_surface (GdkDisplay *display,
return best;
}
+ /* the fallback implementation requires global coordinates */
gdk_surface_get_geometry (surface, &win.x, &win.y, &win.width, &win.height);
gdk_surface_get_origin (surface, &win.x, &win.y);