From: Carlos Garnacho Date: Tue, 3 Jan 2023 13:00:57 +0000 (+0100) Subject: gtkapplication: Do not call gdk_display_notify_startup_complete() X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~106^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3526d8b299becb7cd1e970ea5228a141eae20257;p=gtk4.git gtkapplication: Do not call gdk_display_notify_startup_complete() 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. --- diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index 7f3121c1b1..0088a8d45d 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -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