summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
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