mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-12-14 08:53:20 +00:00
30 lines
720 B
Diff
30 lines
720 B
Diff
From 3613d9a6342fc85279a79ba203f25ff39fc0d8e4 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= <desgua@gmail.com>
|
|
Date: Wed, 29 Oct 2025 09:06:00 -0300
|
|
Subject: [PATCH] add focusonurgent patch
|
|
|
|
---
|
|
dwl.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/dwl.c b/dwl.c
|
|
index 12f441e..5620f66 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
|
|
|