gtkapplication: Do not call gdk_display_notify_startup_complete()
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 3 Jan 2023 13:00:57 +0000 (14:00 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 3 Jan 2023 13:58:33 +0000 (14:58 +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.

gtk/gtkapplication.c

index 7f3121c1b1e220e77e04229a892af4d3eda34338..0088a8d45d1a4551326a509822ba374c405efd68 100644 (file)
@@ -342,17 +342,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);
-    }
 }
 
 static void