x11: Don't use deprecated function

Use the replacement instead.
This commit is contained in:
Benjamin Otte 2011-10-28 07:08:29 -07:00
parent e7e3413e2e
commit 14d35d5c09
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

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