Merge branch 'xdg-activation-no-surface' into 'main'

wayland: xdg-activation: Don't assume there's a focus surface

See merge request GNOME/gtk!4366
This commit is contained in:
Carlos Garnacho 2022-03-02 12:44:52 +00:00
commit f9f9bd3f5b

View File

@ -73,8 +73,9 @@ gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context
xdg_activation_token_v1_set_serial (token,
_gdk_wayland_seat_get_last_implicit_grab_serial (seat, NULL),
gdk_wayland_seat_get_wl_seat (GDK_SEAT (seat)));
xdg_activation_token_v1_set_surface (token,
gdk_wayland_surface_get_wl_surface (focus_surface));
if (focus_surface)
xdg_activation_token_v1_set_surface (token,
gdk_wayland_surface_get_wl_surface (focus_surface));
xdg_activation_token_v1_commit (token);
while (app_launch_data.token == NULL)