forked from AuroraMiddleware/gtk
x11: Don't use deprecated function
Use the replacement instead.
This commit is contained in:
parent
e7e3413e2e
commit
14d35d5c09
@ -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)
|
||||
{
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user