From 335e9e19ad1f2d8ce44500313371da54230978e9 Mon Sep 17 00:00:00 2001 From: sentriz Date: Tue, 4 Aug 2026 13:00:57 +0100 Subject: notify: fall back to urgency when activation has no token --- notify.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/notify.c b/notify.c index 846c7035..c14c9563 100644 --- a/notify.c +++ b/notify.c @@ -271,9 +271,11 @@ notif_done(struct reaper *reaper, pid_t pid, int status, void *data) LOG_DBG("focus window on notification activation: \"%s\"", notif->xdg_token); - if (notif->xdg_token == NULL) - LOG_WARN("cannot focus window: no activation token available"); - else + if (notif->xdg_token == NULL) { + /* No token so request our own and let the compositor decide focus vs. urgency */ + if (!wayl_win_set_urgent(term->window)) + LOG_WARN("cannot focus window: no activation token available"); + } else wayl_activate(term->wl, term->window, notif->xdg_token); } -- cgit v1.3