-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Window activation support #2279
Description
On Wayland for link to raise window(e.g. when clicking a link in application, the launcher application should be opened with some env variable set to specific token).
Both X11 and Wayland has concept like that, see
https://wayland.app/protocols/xdg-activation-v1 and its XDG_ACTIVATION_TOKEN variable.
And X11
https://cgit.freedesktop.org/startup-notification/tree/doc/startup-notification.txt
I'm not sure whether macOS or Windows have something like that, but they probably should.
For now, to account for Wayland, we should add a method on WindowBuilder::with_activation_token(<Option<String>>) and add a method on a particular window to request activation token.
The first will be used when the application is raised from other process or in multiwindow context. The later to run launchers e.g. xdg-open or same in multiwindow context.
cc @ArturKovacs @maroider @madsmtm
--
I'll send Wayland impl and impl it in alacritty, since it looks pretty straightforward.