diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-08-06 10:56:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-08-06 10:56:08 +0000 |
| commit | 0b2a3943c44488ed3b9626fd099d55eb5c06cf3c (patch) | |
| tree | b4d85c37d69519b2c7341d91875566230f43cfc9 | |
| parent | notify: fall back to urgency when activation has no token (diff) | |
notify: improve debug logging for window focusing on notification activation
| -rw-r--r-- | notify.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -268,15 +268,16 @@ notif_done(struct reaper *reaper, pid_t pid, int status, void *data) notif->id != NULL ? notif->id : "<unset>"); if (notif->activated && notif->focus) { - LOG_DBG("focus window on notification activation: \"%s\"", - notif->xdg_token); - if (notif->xdg_token == NULL) { /* No token so request our own and let the compositor decide focus vs. urgency */ + LOG_DBG("set window urgency on notification activation (no XDG token available)"); if (!wayl_win_set_urgent(term->window)) LOG_WARN("cannot focus window: no activation token available"); - } else + } else { + LOG_DBG("focus window on notification activation: \"%s\"", + notif->xdg_token); wayl_activate(term->wl, term->window, notif->xdg_token); + } } if (notif->activated && notif->report_activated) { |
