-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The DBus notification specification includes this signal called ActivationToken
which allows us to emit an activation token (Can be either an X11-style startup ID (see Startup notification protocol) or a Wayland xdg-activation token.)
The intent is to emit this signal before emitting the ActionInvoked signal, which tells the window manager to hand off focus to the application which created the notification associated with the action. An example of how this works is with Firefox. Say we get a Discord notification. When we tell end to invoke the default
action with that Discord notification. It will first emit the ActivationToken
which will cause the window manager to switch workspaces and focus Firefox. Then we emit the ActionInvoked
which Firefox will take and switch tabs to Discord.