[hackers] [dwm][PATCH] Invert urgent border for window hint

From: Ivan Tham <pickfire_AT_riseup.net>
Date: Thu, 19 Sep 2019 21:11:03 +0800

Feature parity for tags with urgent client. Tags are inversed but not
window border.

Window border now uses SchemeNorm ColFg, same as tags but for window.

Prior art: https://dwm.suckless.org/patches/focusurgent/
---
 dwm.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/dwm.c b/dwm.c
index 4465af1..6610199 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -1233,6 +1233,8 @@ propertynotify(XEvent *e)
 		case XA_WM_HINTS:
 			updatewmhints(c);
 			drawbars();
+			if (c->isurgent)
+				XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColFg].pixel);
 			break;
 		}
 		if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
-- 
2.23.0
Received on Thu Sep 19 2019 - 15:11:03 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 19 2019 - 15:12:25 CEST