From d1077ff4619e75bac83ff1b36a23ea9d841bf1dd Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 19 May 2026 15:42:29 +0200 Subject: [PATCH] Mark app as needing attention This should make the app flash men the user is returning from the "login via web" workflow. Seems bringing the app back to the foreground is a bit more involved --- linux/runner/my_application.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc index 6065965e3..20d05ca44 100644 --- a/linux/runner/my_application.cc +++ b/linux/runner/my_application.cc @@ -25,7 +25,12 @@ static void my_application_activate(GApplication* application) { // link itself flows separately through command_line → gtk plugin → app_links. GtkWindow* existing = gtk_application_get_active_window(GTK_APPLICATION(application)); if (existing != nullptr) { - gtk_window_present(existing); + gtk_window_present_with_time(existing, GDK_CURRENT_TIME); + + // Modern Wayland compositors routinely refuse the present() under + // focus-stealing prevention, mark the window as needing attention so + // the taskbar/dock highlights it and the user can click over. + gtk_window_set_urgency_hint(existing, TRUE); return; }