diff options
| author | sentriz <senan@senan.xyz> | 2026-08-04 12:00:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-08-06 10:51:34 +0000 |
| commit | 335e9e19ad1f2d8ce44500313371da54230978e9 (patch) | |
| tree | 75e1a3389c375e6b6cbbddee7c0e771e7c8d7c72 | |
| parent | selection: check column when updating selection (diff) | |
notify: fall back to urgency when activation has no token
| -rw-r--r-- | notify.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); } |
