Skip to content

Window activation support #2279

@kchibisov

Description

@kchibisov

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.

Metadata

Metadata

Assignees

Labels

C - needs discussionDirection must be ironed outDS - waylandAffects the Wayland backend, or generally free Unix platformsDS - x11Affects the X11 backend, or generally free Unix platformsS - apiDesign and usability

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions