# fix: a later launch brings the running window forward on Wayland · clo/snowbound

[View on GitCafe](https://git.cafe/clo/snowbound/commit/f4abeb10328178d4685cc9788c296516e6b186a6)

Repository: [clo/snowbound](https://git.cafe/clo/snowbound)

Visibility: public

Requested revision: f4abeb10328178d4685cc9788c296516e6b186a6

Requested commit: f4abeb10328178d4685cc9788c296516e6b186a6

Commit: f4abeb10328178d4685cc9788c296516e6b186a6

Tree: 41b6c6684263f8989d4cdcd9b3e87f669aa6d423

Author: clover caruso

Committer: clover caruso

## Message

```
fix: a later launch brings the running window forward on Wayland

A second launch handed its files to the running app, which could not raise its
window under GNOME's focus-stealing prevention. The launcher's activation token
(XDG_ACTIVATION_TOKEN, or DESKTOP_STARTUP_ID) now travels with the files, and the
running app activates its surface with xdg_activation_v1, or on X11 sends
_NET_ACTIVE_WINDOW at the launch's time and ends the startup notification. A
cold launch opens with the token too, and the desktop entry asks for startup
notification, without which GLib launchers pass no token.

Verified on Fedora Silverblue 44 (GNOME 50) by opening a second section from
Files over the running window, on Wayland and on Xwayland.

Fixes #58.

Assisted-by: claude-opus-5.5

```

## Parents

- [282b96db3198a95fdb61aa5d1977a7b2c9e05828](https://git.cafe/clo/snowbound/commit/282b96db3198a95fdb61aa5d1977a7b2c9e05828?format=markdown)

[Source at this commit](https://git.cafe/clo/snowbound/tree/f4abeb10328178d4685cc9788c296516e6b186a6?format=markdown)
