aboutsummaryrefslogtreecommitdiff
path: root/notify.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-08-06 10:56:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-08-06 10:56:08 +0000
commit0b2a3943c44488ed3b9626fd099d55eb5c06cf3c (patch)
treeb4d85c37d69519b2c7341d91875566230f43cfc9 /notify.c
parentnotify: fall back to urgency when activation has no token (diff)
notify: improve debug logging for window focusing on notification activation
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/notify.c b/notify.c
index c14c9563..3ee329d9 100644
--- a/notify.c
+++ b/notify.c
@@ -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) {