diff options
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |