summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authordianshi <dianshi@main.lv>2020-04-05 14:49:13 +0100
committerdianshi <dianshi@main.lv>2020-04-05 14:49:13 +0100
commit41259cc53bb01ca01564321894ffa027c1fd2928 (patch)
tree56417b16f5c6dc7df0aab0a2dd2cb072e18effe2 /dwm.c
parentbfe0aa75a6d08ee98883418eb367b19581ea9e75 (diff)
downloaddwm-pixel-41259cc53bb01ca01564321894ffa027c1fd2928.tar.gz
dwm-pixel-41259cc53bb01ca01564321894ffa027c1fd2928.zip
Added urgent notification coloring
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 2ce630f..0a1e33e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -61,7 +61,11 @@
/* enums */
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
+#ifdef CONFIG_DWM_URGBORDER
+enum { SchemeNorm, SchemeSel, SchemeUrg }; /* color schemes */
+#else
enum { SchemeNorm, SchemeSel }; /* color schemes */
+#endif
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
@@ -2179,6 +2183,15 @@ updatewmhints(Client *c)
XSetWMHints(dpy, c->win, wmh);
} else
c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
+ /******************************************************************/
+ #ifdef CONFIG_DWM_URGBORDER
+ if (c->isurgent)
+ {
+ //XSetWindowBorder(dpy, c->win, scheme[SchemeUrg].border->pix);
+ XSetWindowBorder(dpy, c->win, scheme[SchemeUrg][ColBorder].pixel);
+ }
+ #endif
+ /******************************************************************/
if (wmh->flags & InputHint)
c->neverfocus = !wmh->input;
else