Repository navigation
Conversation
This was referenced Oct 20, 2026
dmkenney
force-pushed
the
quickshell-activation-token
branch
from
October 24, 2026 14:24
5b73b29 to
ef55897
Compare
[Medium impact] The PR appears safe to merge; no new actionable defects were established. SummaryAdds Wayland activation tokens to notification actions, tray clicks, and the new
No new actionable issues were established.
|
dmkenney
force-pushed
the
quickshell-activation-token
branch
from
October 24, 2026 14:36
ef55897 to
91f2534
Compare
Clicking a notification sent from a browser service worker, such as Teams in Brave, closed it but did not raise the window that sent it. Quickshell declares the ActivationToken signal but never emits it, so the browser has no token and Hyprland ignores its focus request. The patch requests a token for the last user input when an action is invoked and emits ActivationToken before ActionInvoked, as the notification spec requires.
Add Quickshell.activationToken(), which returns a token for the most recent input from the same provider the notification actions use. The Omarchy launcher passes it to the app it launches, so an app that is already running can raise its window on a Hyprland that checks token serials.
The old patch waited for the token with a Wayland roundtrip on the UI thread, which can block for as long as the compositor takes, and a roundtrip doesn't guarantee the token has arrived. Upstream review rejected that approach. The patch is now the upstream commits on top of the pinned commit: quickshell-mirror/quickshell#1166 (merged: shared activation helper and tray tokens), and omacom#1351 and omacom#1353 (notification tokens and Quickshell.requestActivationToken(), both async). omacom#1351 also gives each token request its own callback, so overlapping requests get their own tokens and a request survives its window closing. Quickshell.activationToken() is gone; omacom/omarchy#16097 moves to the callback.
dmkenney
force-pushed
the
quickshell-activation-token
branch
from
November 24, 2026 17:38
91f2534 to
65c837c
Compare
Contributor
Author
|
Rebased on master, where quickshell is at pkgrel 11, so this is now 12. The patch is unchanged and still applies to 2b4501a ( |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of omacom/omarchy#16078.
Clicking a notification sent from a browser service worker (Teams, Slack web, etc.) doesn't raise the window that sent it. Quickshell's notification server declares the
ActivationTokensignal but never emits it. Without a token the browser'sclient.focus()can't activate its window, so Hyprland ignores it.xdg_activation_token.patchmakesNotificationAction::invoke()request an xdg-activation token for the last user input and emitActivationToken(id, token)beforeActionInvoked, as the notification spec requires. The Wayland part lives in a newsrc/wayland/xdg_activation.cpp, installed from the Wayland plugin. The notifications module calls it through a small provider hook insrc/core/activationtoken.hpp, so it has no Wayland code of its own.pkgrelgoes to 2.It's carried here, like
load_qtquick_611.patch, and not sent upstream: quickshell does not accept contributions written with AI tools.Testing
makepkg. Both patches apply with--fuzz=0on 2b4501a.tests/pinned-sources.shandtests/package-metadata.shpass.Notify, thenActivationToken, thenActionInvoked, and Brave switched to the Teams window that sent it.This needs
misc:focus_on_activate = true(Omarchy's default). omacom/omarchy#14283 would turn it off for browsers and block this again.Update:
Quickshell.activationToken()The patch now also adds
Quickshell.activationToken(), which returns a token for the most recent input from the same provider. omacom/omarchy#16097 uses it so the Apps launcher can raise an app that's already running once Hyprland checks token serials (#1379).makepkg -fbuildsquickshell 0.3.2.r7.g2b4501a-2with the updated patch. In the source tree, all 9 tests pass.Quickshell.activationToken(), the launcher passed the token on, and the running Nautilus came forward.Upstream: quickshell-mirror/quickshell#1351 (notification tokens) was closed as a duplicate of quickshell-mirror/quickshell#1166, which adds a shared activation helper for tray clicks. The notification part goes upstream on top of #1166 once it merges; quickshell-mirror/quickshell#1353 (
Quickshell.activationToken()) waits for that. This patch is unaffected.Update: patch rebuilt from the upstream PRs
The patch above is replaced. It waited for the token with a Wayland roundtrip on the UI thread, which quickshell review rejected.
xdg_activation_token.patchis now these upstream commits asgit format-patchoutput on the pinned 2b4501a:ActionInvokedis sent.Quickshell.requestActivationToken(callback)replacesQuickshell.activationToken(). Raise a running app the launcher is asked to open omarchy#16097 is updated for it.The branch is rebased on master, so
pkgrelis now 4 (master is at 3).Testing:
--fuzz=0on 2b4501a.makepkg -Cfbuildsquickshell 0.3.2.r7.g2b4501a-4.tests/pinned-sources.shandtests/package-metadata.shpass.notify-send -A default=Open --wait: dbus-monitor showedActivationToken,ActionInvoked,NotificationClosed, and notify-send printeddefault. A handler that took that token and calledorg.freedesktop.Application.Activateon Nautilus (on another workspace) brought Nautilus forward. A made-up token did not.XDG_ACTIVATION_TOKEN, and launching Files with Nautilus open on another workspace brought its window forward.