broadway: 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:28:09 -04:00 committed by Ahmed Eldemery
parent d6392c9035
commit f854c2850f
3 changed files with 2 additions and 16 deletions

View File

@ -75,7 +75,6 @@ gdk_broadway_device_set_surface_cursor (GdkDevice *device,
void
gdk_broadway_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
double *win_x,
double *win_y,
GdkModifierType *mask)
@ -104,18 +103,6 @@ gdk_broadway_device_query_state (GdkDevice *device,
*win_y = device_root_y;
if (mask)
*mask = mask32;
if (child_surface)
{
GdkSurface *mouse_toplevel;
mouse_toplevel = g_hash_table_lookup (broadway_display->id_ht, GUINT_TO_POINTER (mouse_toplevel_id));
if (surface == NULL)
*child_surface = mouse_toplevel;
else
*child_surface = NULL;
}
return;
}
void
@ -248,7 +235,7 @@ gdk_broadway_device_surface_at_position (GdkDevice *device,
{
GdkSurface *surface = NULL;
gdk_broadway_device_query_state (device, NULL, &surface, win_x, win_y, mask);
gdk_broadway_device_query_state (device, NULL, win_x, win_y, mask);
return surface;
}

View File

@ -47,7 +47,6 @@ GType gdk_broadway_device_get_type (void) G_GNUC_CONST;
void gdk_broadway_device_query_state (GdkDevice *device,
GdkSurface *surface,
GdkSurface **child_surface,
double *win_x,
double *win_y,
GdkModifierType *mask);

View File

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