summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-10-28 07:08:29 -0700
committerBenjamin Otte <otte@redhat.com>2011-11-02 02:32:25 +0100
commit14d35d5c0909b04d1a1b06e9de5692698e5fddf3 (patch)
tree8f8f878ff61c9b4d9012a20698c1e8d86e19f95a /gdk/x11
parente7e3413e2e46a20140d1f317763b081853220baa (diff)
downloadgtk+-14d35d5c0909b04d1a1b06e9de5692698e5fddf3.tar.gz
x11: Don't use deprecated function
Use the replacement instead.
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),