From b2a2bf819df6958219c7de55b769e8fab92ee1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 11 Feb 2023 23:14:53 +0100 Subject: [PATCH] wayland/launch-context: Use dispatch helper Otherwise we risk a busy loop if e.g. the pipe broke. --- gdk/wayland/gdkapplaunchcontext-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkapplaunchcontext-wayland.c b/gdk/wayland/gdkapplaunchcontext-wayland.c index cc4914867a..a4dd443388 100644 --- a/gdk/wayland/gdkapplaunchcontext-wayland.c +++ b/gdk/wayland/gdkapplaunchcontext-wayland.c @@ -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;