From 14d35d5c0909b04d1a1b06e9de5692698e5fddf3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 28 Oct 2011 07:08:29 -0700 Subject: [PATCH] x11: Don't use deprecated function Use the replacement instead. --- gdk/x11/gdkdevice-core-x11.c | 2 +- gdk/x11/gdkdevice-xi.c | 2 +- 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),