static struct zwp_keyboard_shortcuts_inhibitor_v1 *
gdk_wayland_surface_get_inhibitor (GdkWaylandSurface *impl,
- struct wl_seat *seat)
+ GdkSeat *gdk_seat)
{
- return g_hash_table_lookup (impl->shortcuts_inhibitors, seat);
+ return g_hash_table_lookup (impl->shortcuts_inhibitors, gdk_seat);
}
void
return;
if (gdk_wayland_surface_get_inhibitor (impl, seat))
- return; /* Already inhibitted */
+ return; /* Already inhibited */
inhibitor =
zwp_keyboard_shortcuts_inhibit_manager_v1_inhibit_shortcuts (
display->keyboard_shortcuts_inhibit, wl_surface, seat);
- g_hash_table_insert (impl->shortcuts_inhibitors, seat, inhibitor);
+ g_hash_table_insert (impl->shortcuts_inhibitors, gdk_seat, inhibitor);
}
void
GdkSeat *gdk_seat)
{
GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface);
- struct wl_seat *seat = gdk_wayland_seat_get_wl_seat (gdk_seat);
struct zwp_keyboard_shortcuts_inhibitor_v1 *inhibitor;
- inhibitor = gdk_wayland_surface_get_inhibitor (impl, seat);
+ inhibitor = gdk_wayland_surface_get_inhibitor (impl, gdk_seat);
if (inhibitor == NULL)
return; /* Not inhibitted */
zwp_keyboard_shortcuts_inhibitor_v1_destroy (inhibitor);
- g_hash_table_remove (impl->shortcuts_inhibitors, seat);
+ g_hash_table_remove (impl->shortcuts_inhibitors, gdk_seat);
}
GdkSurface *