summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkdevice-core-x11.c2
-rw-r--r--gdk/x11/gdkdevice-xi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkdevice-core-x11.c b/gdk/x11/gdkdevice-core-x11.c
index 938aad77c0..d5b66c3c39 100644
--- a/gdk/x11/gdkdevice-core-x11.c
+++ b/gdk/x11/gdkdevice-core-x11.c
@@ -196,7 +196,7 @@ gdk_x11_device_core_get_state (GdkDevice *device,
{
gint x_int, y_int;
- gdk_window_get_pointer (window, &x_int, &y_int, mask);
+ gdk_window_get_device_position (window, device, &x_int, &y_int, mask);
if (axes)
{
diff --git a/gdk/x11/gdkdevice-xi.c b/gdk/x11/gdkdevice-xi.c
index 16ef3bd116..8b16815018 100644
--- a/gdk/x11/gdkdevice-xi.c
+++ b/gdk/x11/gdkdevice-xi.c
@@ -292,7 +292,7 @@ gdk_x11_device_xi_get_state (GdkDevice *device,
gint i;
if (mask)
- gdk_window_get_pointer (window, NULL, NULL, mask);
+ gdk_window_get_device_position (window, device, NULL, NULL, mask);
device_xi = GDK_X11_DEVICE_XI (device);
state = XQueryDeviceState (GDK_WINDOW_XDISPLAY (window),