aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsentriz <senan@senan.xyz>2026-08-04 12:00:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-08-06 10:51:34 +0000
commit335e9e19ad1f2d8ce44500313371da54230978e9 (patch)
tree75e1a3389c375e6b6cbbddee7c0e771e7c8d7c72
parentselection: check column when updating selection (diff)
notify: fall back to urgency when activation has no token
-rw-r--r--notify.c8
1 files 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);
}