mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-10-26 09:44:21 +00:00
30 lines
708 B
Diff
30 lines
708 B
Diff
From ed25e131a5994812075f29c0b16e2780a068407a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= <desgua@gmail.com>
|
|
Date: Mon, 13 Oct 2025 07:49:15 -0300
|
|
Subject: [PATCH] focusonurgent
|
|
|
|
---
|
|
dwl.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/dwl.c b/dwl.c
|
|
index 12f441e..633c1eb 100644
|
|
--- a/dwl.c
|
|
+++ b/dwl.c
|
|
@@ -2097,8 +2097,10 @@ printstatus(void)
|
|
if (c->mon != m)
|
|
continue;
|
|
occ |= c->tags;
|
|
- if (c->isurgent)
|
|
- urg |= c->tags;
|
|
+ if (c->isurgent) {
|
|
+ view(&((Arg){.ui = c->tags}));
|
|
+ focusclient(c, 1);
|
|
+ }
|
|
}
|
|
if ((c = focustop(m))) {
|
|
printf("%s title %s\n", m->wlr_output->name, client_get_title(c));
|
|
--
|
|
2.51.0
|
|
|