Wayland: the activation token of a second launch, tray click or notification click is not used to raise the window #941

Open
opened 2026-11-19 07:46:42 +00:00 by charles · 0 comments
Owner

Desktop shell spec §3 row 52, §10.2. Shell 30 built fluxer_platform::activation::activate (xdg_activation_v1 with a token), but nothing calls it: fluxer-ui/src/shell.rs turns WindowCommand::Activate(_) into the same show-and-focus as Raise (iced's gain_focus, which does nothing on Wayland), apps/fluxer/src/shell_rt.rs drops the tray's token (TrayEvent::Activate { token: _ }), and apps/fluxer/src/runtime.rs does not use Clicked::activation_token of a notification click (comment there: "not used yet").

Effect: on KDE, GNOME and wlroots a window that is open but behind others is not raised by a second launch, a tray click or a notification click (a hidden window is reopened, which works).

To do: hand the token of WindowCommand::Activate (and of the tray and notification clicks) to activation::activate on the window's handle (WindowHost), with the documented fallback to an attention request.

Seen on shell at 7e1ad2209 (Shell 43 parity list); closes the last two boxes of #55 with Task 44.

Desktop shell spec §3 row 52, §10.2. Shell 30 built `fluxer_platform::activation::activate` (xdg_activation_v1 with a token), but nothing calls it: `fluxer-ui/src/shell.rs` turns `WindowCommand::Activate(_)` into the same show-and-focus as `Raise` (iced's `gain_focus`, which does nothing on Wayland), `apps/fluxer/src/shell_rt.rs` drops the tray's token (`TrayEvent::Activate { token: _ }`), and `apps/fluxer/src/runtime.rs` does not use `Clicked::activation_token` of a notification click (comment there: "not used yet"). Effect: on KDE, GNOME and wlroots a window that is open but behind others is not raised by a second launch, a tray click or a notification click (a hidden window is reopened, which works). To do: hand the token of `WindowCommand::Activate` (and of the tray and notification clicks) to `activation::activate` on the window's handle (`WindowHost`), with the documented fallback to an attention request. Seen on shell at 7e1ad2209 (Shell 43 parity list); closes the last two boxes of #55 with Task 44.
charles added this to the Desktop shell milestone 2026-11-19 07:46:42 +00:00
charles referenced this issue from a commit 2026-11-19 08:14:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#941
No description provided.