diff options
-rw-r--r-- | gdk/broadway/gdkdevice-broadway.c | 10 | ||||
-rw-r--r-- | gdk/gdkdevice.c | 7 | ||||
-rw-r--r-- | gdk/gdkdeviceprivate.h | 2 | ||||
-rw-r--r-- | gdk/mir/gdkmirwindowimpl.c | 2 | ||||
-rw-r--r-- | gdk/wayland/gdkdevice-wayland.c | 7 | ||||
-rw-r--r-- | gdk/wayland/gdkwindow-wayland.c | 2 | ||||
-rw-r--r-- | gdk/win32/gdkdevice-virtual.c | 3 | ||||
-rw-r--r-- | gdk/win32/gdkwindow-win32.c | 2 | ||||
-rw-r--r-- | gdk/x11/gdkdevice-core-x11.c | 5 | ||||
-rw-r--r-- | gdk/x11/gdkdevice-xi2.c | 9 | ||||
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 2 |
11 files changed, 10 insertions, 41 deletions
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c index 5c9283795d..b3abec01f7 100644 --- a/gdk/broadway/gdkdevice-broadway.c +++ b/gdk/broadway/gdkdevice-broadway.c @@ -42,7 +42,6 @@ static void gdk_broadway_device_warp (GdkDevice *device, gdouble y); static void gdk_broadway_device_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -143,7 +142,6 @@ gdk_broadway_device_warp (GdkDevice *device, static void gdk_broadway_device_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -170,12 +168,6 @@ gdk_broadway_device_query_state (GdkDevice *device, impl = GDK_WINDOW_IMPL_BROADWAY (window->impl); toplevel = impl->wrapper; - if (root_window) - { - screen = gdk_window_get_screen (window); - *root_window = gdk_screen_get_root_window (screen); - } - _gdk_broadway_server_query_mouse (broadway_display->server, &mouse_toplevel_id, &device_root_x, @@ -347,7 +339,7 @@ gdk_broadway_device_window_at_position (GdkDevice *device, screen = gdk_display_get_default_screen (gdk_device_get_display (device)); root_window = gdk_screen_get_root_window (screen); - gdk_broadway_device_query_state (device, root_window, NULL, &window, NULL, NULL, win_x, win_y, mask); + gdk_broadway_device_query_state (device, root_window, &window, NULL, NULL, win_x, win_y, mask); return window; } diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c index 13451a5400..62ee1cf730 100644 --- a/gdk/gdkdevice.c +++ b/gdk/gdkdevice.c @@ -586,7 +586,6 @@ gdk_device_get_position_double (GdkDevice *device, GdkDisplay *display; gdouble tmp_x, tmp_y; GdkScreen *default_screen; - GdkWindow *root; g_return_if_fail (GDK_IS_DEVICE (device)); g_return_if_fail (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD); @@ -600,12 +599,12 @@ gdk_device_get_position_double (GdkDevice *device, _gdk_device_query_state (device, gdk_screen_get_root_window (default_screen), - &root, NULL, + NULL, &tmp_x, &tmp_y, NULL, NULL, NULL); if (screen) - *screen = gdk_window_get_screen (root); + *screen = default_screen; if (x) *x = tmp_x; if (y) @@ -1838,7 +1837,6 @@ _gdk_device_translate_axis (GdkDevice *device, void _gdk_device_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -1848,7 +1846,6 @@ _gdk_device_query_state (GdkDevice *device, { GDK_DEVICE_GET_CLASS (device)->query_state (device, window, - root_window, child_window, root_x, root_y, diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h index 22d5097d12..86d2a55fb6 100644 --- a/gdk/gdkdeviceprivate.h +++ b/gdk/gdkdeviceprivate.h @@ -94,7 +94,6 @@ struct _GdkDeviceClass gdouble y); void (* query_state) (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -172,7 +171,6 @@ void _gdk_device_remove_slave (GdkDevice *device, GdkDevice *slave); void _gdk_device_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c index 50406d7877..e92c85ec8e 100644 --- a/gdk/mir/gdkmirwindowimpl.c +++ b/gdk/mir/gdkmirwindowimpl.c @@ -1327,7 +1327,7 @@ gdk_mir_window_impl_get_device_state (GdkWindow *window, { GdkWindow *child; - _gdk_device_query_state (device, window, NULL, &child, NULL, NULL, x, y, mask); + _gdk_device_query_state (device, window, &child, NULL, NULL, x, y, mask); return child != NULL; } diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index e1bccc606d..664eebeb98 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -583,7 +583,6 @@ device_get_modifiers (GdkDevice *device) static void gdk_wayland_device_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -591,16 +590,10 @@ gdk_wayland_device_query_state (GdkDevice *device, gdouble *win_y, GdkModifierType *mask) { - GdkWaylandSeat *seat; GdkWaylandPointerData *pointer; - GdkScreen *default_screen; - seat = GDK_WAYLAND_SEAT (gdk_device_get_seat (device)); pointer = GDK_WAYLAND_DEVICE (device)->pointer; - default_screen = gdk_display_get_default_screen (seat->display); - if (root_window) - *root_window = gdk_screen_get_root_window (default_screen); if (child_window) /* Set child only if actually a child of the given window, as XIQueryPointer() does */ *child_window = g_list_find (window->children, pointer->focus) ? pointer->focus : NULL; diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 1b42371a46..b6c4cee159 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -2780,7 +2780,7 @@ gdk_window_wayland_get_device_state (GdkWindow *window, GdkWindow *child; GDK_DEVICE_GET_CLASS (device)->query_state (device, window, - NULL, &child, + &child, NULL, NULL, x, y, mask); return_val = (child != NULL); diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c index 452bd39a47..36c533b886 100644 --- a/gdk/win32/gdkdevice-virtual.c +++ b/gdk/win32/gdkdevice-virtual.c @@ -133,7 +133,6 @@ gdk_device_virtual_warp (GdkDevice *device, static void gdk_device_virtual_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -144,7 +143,7 @@ gdk_device_virtual_query_state (GdkDevice *device, GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device); _gdk_device_query_state (virtual->active_device, - window, root_window, child_window, + window, child_window, root_x, root_y, win_x, win_y, mask); diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index a545611d74..6d8f07893d 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -2214,7 +2214,7 @@ gdk_window_win32_get_device_state (GdkWindow *window, g_return_val_if_fail (window == NULL || GDK_IS_WINDOW (window), FALSE); GDK_DEVICE_GET_CLASS (device)->query_state (device, window, - NULL, &child, + &child, NULL, NULL, x, y, mask); return (child != NULL); diff --git a/gdk/x11/gdkdevice-core-x11.c b/gdk/x11/gdkdevice-core-x11.c index 8df9cced6b..574a45b47e 100644 --- a/gdk/x11/gdkdevice-core-x11.c +++ b/gdk/x11/gdkdevice-core-x11.c @@ -60,7 +60,6 @@ static void gdk_x11_device_core_warp (GdkDevice *device, gdouble y); static void gdk_x11_device_core_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -250,7 +249,6 @@ gdk_x11_device_core_warp (GdkDevice *device, static void gdk_x11_device_core_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -297,9 +295,6 @@ gdk_x11_device_core_query_state (GdkDevice *device, XDestroyWindow (xdisplay, w); } - if (root_window) - *root_window = gdk_x11_window_lookup_for_display (display, xroot_window); - if (child_window) *child_window = gdk_x11_window_lookup_for_display (display, xchild_window); diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 23816ecbe1..6b22abbf0d 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -85,7 +85,6 @@ static void gdk_x11_device_xi2_warp (GdkDevice *device, gdouble y); static void gdk_x11_device_xi2_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -271,7 +270,7 @@ gdk_x11_device_xi2_get_state (GdkDevice *device, if (mask) gdk_x11_device_xi2_query_state (device, window, - NULL, NULL, + NULL, NULL, NULL, NULL, NULL, mask); @@ -321,7 +320,6 @@ gdk_x11_device_xi2_warp (GdkDevice *device, static void gdk_x11_device_xi2_query_state (GdkDevice *device, GdkWindow *window, - GdkWindow **root_window, GdkWindow **child_window, gdouble *root_x, gdouble *root_y, @@ -347,7 +345,7 @@ gdk_x11_device_xi2_query_state (GdkDevice *device, GdkDevice *master = gdk_device_get_associated_device (device); if (master) - _gdk_device_query_state (master, window, root_window, child_window, + _gdk_device_query_state (master, window, child_window, root_x, root_y, win_x, win_y, mask); return; } @@ -387,9 +385,6 @@ gdk_x11_device_xi2_query_state (GdkDevice *device, XDestroyWindow (xdisplay, w); } - if (root_window) - *root_window = gdk_x11_window_lookup_for_display (display, xroot_window); - if (child_window) *child_window = gdk_x11_window_lookup_for_display (display, xchild_window); diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index e76f3b5413..7d369079e8 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -2791,7 +2791,7 @@ gdk_window_x11_get_device_state (GdkWindow *window, /*HIDPI: handle coords here?*/ GDK_DEVICE_GET_CLASS (device)->query_state (device, window, - NULL, &child, + &child, NULL, NULL, x, y, mask); return child != NULL; |