gtkapplication: Do not call gdk_display_notify_startup_complete()
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 18 Jan 2023 20:05:28 +0000 (21:05 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 25 Jan 2023 10:22:40 +0000 (11:22 +0100)
This should do nothing worthwhile anymore, the X11/Wayland GtkApplication
implementations do already pass the startup ID from the platform_data
via windowing specific APIs, and the application handling the request
via show()/present() should trigger the activation request.

(cherry-picked from commit 3526d8b299becb7cd1e970ea5228a141eae20257)

gtk/gtkapplication.c

index 17e92058904f542acd9c05b564322b1610841703..ac33c84fa20eb8d8d4c0b2403f6569a1818f6cda 100644 (file)
@@ -376,18 +376,6 @@ static void
 gtk_application_after_emit (GApplication *application,
                             GVariant     *platform_data)
 {
-  const char *startup_notification_id = NULL;
-
-  g_variant_lookup (platform_data, "desktop-startup-id", "&s", &startup_notification_id);
-  if (startup_notification_id)
-    {
-      GdkDisplay *display;
-
-      display = gdk_display_get_default ();
-      if (display)
-        gdk_display_notify_startup_complete (display, startup_notification_id);
-    }
-
   gdk_threads_leave ();
 }