From 0b2a3943c44488ed3b9626fd099d55eb5c06cf3c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 6 Aug 2026 12:56:08 +0200 Subject: notify: improve debug logging for window focusing on notification activation --- notify.c | 9 +++++---- 1 file 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 : ""); 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) { -- cgit v1.3