x11: Drop unused argument from query_state

Now that this is backend-only api, we can just
drop unused arguments.
This commit is contained in:
Matthias Clasen 2020-08-26 16:23:21 -04:00 committed by Ahmed Eldemery
parent 9cddc36fe2
commit 02631d2b6e
4 changed files with 4 additions and 9 deletions

View File

@ -2,8 +2,7 @@
#define __GDK_DEVICE_XI2_PRIVATE_H__
void gdk_x11_device_xi2_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
GdkSurface *surface,
double *win_x,
double *win_y,
GdkModifierType *mask);

View File

@ -202,7 +202,6 @@ gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
void
gdk_x11_device_xi2_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
double *win_x,
double *win_y,
GdkModifierType *mask)
@ -265,9 +264,6 @@ gdk_x11_device_xi2_query_state (GdkDevice *device,
XDestroyWindow (xdisplay, w);
}
if (child_surface)
*child_surface = gdk_x11_surface_lookup_for_display (display, xchild_window);
if (win_x)
*win_x = xwin_x / scale;

View File

@ -2011,7 +2011,7 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface,
precache_target_list (drag);
gdk_x11_device_xi2_query_state (device, surface, NULL, &px, &py, NULL);
gdk_x11_device_xi2_query_state (device, surface, &px, &py, NULL);
gdk_x11_surface_get_root_coords (surface,
round (px + dx),
@ -2271,7 +2271,7 @@ gdk_dnd_handle_key_event (GdkDrag *drag,
* to query it here. We could use XGetModifierMapping, but
* that would be overkill.
*/
gdk_x11_device_xi2_query_state (pointer, NULL, NULL, NULL, NULL, &state);
gdk_x11_device_xi2_query_state (pointer, NULL, NULL, NULL, &state);
if (dx != 0 || dy != 0)
{

View File

@ -2668,7 +2668,7 @@ gdk_x11_surface_get_device_state (GdkSurface *surface,
if (GDK_SURFACE_DESTROYED (surface))
return FALSE;
gdk_x11_device_xi2_query_state (device, surface, NULL, x, y, mask);
gdk_x11_device_xi2_query_state (device, surface, x, y, mask);
return *x >= 0 && *y >= 0 && *x < surface->width && *y < surface->height;
}