wayland/launch-context: Use dispatch helper

Otherwise we risk a busy loop if e.g. the pipe broke.
This commit is contained in:
Jonas Ådahl 2023-02-11 23:14:53 +01:00
parent dd9433b50e
commit b2a2bf819d

View File

@ -87,7 +87,7 @@ gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context
xdg_activation_token_v1_commit (token);
while (app_launch_data.token == NULL)
wl_display_dispatch_queue (display->wl_display, event_queue);
gdk_wayland_display_dispatch_queue (GDK_DISPLAY (display), event_queue);
xdg_activation_token_v1_destroy (token);
id = app_launch_data.token;