diff options
Diffstat (limited to 'gtk/gtkapplication-wayland.c')
-rw-r--r-- | gtk/gtkapplication-wayland.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkapplication-wayland.c b/gtk/gtkapplication-wayland.c index 42a6e029c7..510d22656c 100644 --- a/gtk/gtkapplication-wayland.c +++ b/gtk/gtkapplication-wayland.c @@ -104,7 +104,9 @@ gtk_application_impl_wayland_before_emit (GtkApplicationImpl *impl, { const char *startup_notification_id = NULL; - g_variant_lookup (platform_data, "desktop-startup-id", "&s", &startup_notification_id); + g_variant_lookup (platform_data, "activation-token", "&s", &startup_notification_id); + if (!startup_notification_id) + g_variant_lookup (platform_data, "desktop-startup-id", "&s", &startup_notification_id); gdk_wayland_display_set_startup_notification_id (gdk_display_get_default (), startup_notification_id); } |