commit d4ad2a94f8b0c3e8ea0b24d123070c8a3b3e4b5a
Author: Ivan Tham <[email protected]>
Date:   Tue Sep 24 00:18:43 2019 +0800

    [dwm][urgentborder] Add minimal patch

diff --git a/dwm.suckless.org/patches/urgentborder/dwm-6.1-min-border.diff 
b/dwm.suckless.org/patches/urgentborder/dwm-6.1-min-border.diff
new file mode 100644
index 00000000..e91fd864
--- /dev/null
+++ b/dwm.suckless.org/patches/urgentborder/dwm-6.1-min-border.diff
@@ -0,0 +1,13 @@
+diff --git a/dwm.c b/dwm.c
+index 4465af1..6610199 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -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]) {
diff --git a/dwm.suckless.org/patches/urgentborder/index.md 
b/dwm.suckless.org/patches/urgentborder/index.md
index 4dc3346e..1d23aa8b 100644
--- a/dwm.suckless.org/patches/urgentborder/index.md
+++ b/dwm.suckless.org/patches/urgentborder/index.md
@@ -6,10 +6,16 @@ Description
 This patch makes borders of "urgent" windows a different color. By default it
 is bright red. Use config.h item "urgbordercolor" to change it.
 
+An alternative patch which provides a minimal urgent border utilizing the
+existing features to provide a feature parity to the urgent tags, using the
+same foreground color as the urgent tags which they inverted.
+
 Download
 --------
 * [dwm-6.1-urg-border.diff](dwm-6.1-urg-border.diff) (2.2K) (20150307)
+* [dwm-6.1-min-border.diff](dwm-6.1-min-border.diff) (360) (20190924)
  
 Author
 ------
 * Alexander Huemer - alexander dot huemer dot xx dot vu (Based on former work 
by Ray Kohler - ataraxia937 gmail com)
+* Ivan Tham - <[email protected]> (min port)


Reply via email to