Commit bff46d86 authored by Carlos Garnacho's avatar Carlos Garnacho

gdk/wayland: Set a startup notification

And notify the shell about it. This is done through the
gtk_shell1.notify_launch request added in gtk-shell v3. All the plumbing
on the way to the activated application is already in place to transfer
the startup ID, so the other side just has to reply with

Closes: #624
parent ed9db5a1
Pipeline #53198 passed with stage
in 8 minutes and 29 seconds
......@@ -35,7 +35,20 @@ gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context
GAppInfo *info,
GList *files)
return NULL;
GdkWaylandDisplay *display;
gchar *id = NULL;
g_object_get (context, "display", &display, NULL);
if (display->gtk_shell_version >= 3)
id = g_uuid_string_random ();
gtk_shell1_notify_launch (display->gtk_shell, id);
g_object_unref (display);
return id;
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment