wayland/launch-context: Use dispatch helper
authorJonas Ådahl <jadahl@gmail.com>
Sat, 11 Feb 2023 22:14:53 +0000 (23:14 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 11 Feb 2023 22:14:53 +0000 (23:14 +0100)
Otherwise we risk a busy loop if e.g. the pipe broke.

gdk/wayland/gdkapplaunchcontext-wayland.c

index cc4914867abf20ff616a9cb04121440d1eb41bdf..a4dd4433889513bd82bf4b886e1be0ceab16fc6c 100644 (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;