diff options
author | dianshi <dianshi@main.lv> | 2020-04-05 14:49:13 +0100 |
---|---|---|
committer | dianshi <dianshi@main.lv> | 2020-04-05 14:49:13 +0100 |
commit | 41259cc53bb01ca01564321894ffa027c1fd2928 (patch) | |
tree | 56417b16f5c6dc7df0aab0a2dd2cb072e18effe2 /dwm.c | |
parent | bfe0aa75a6d08ee98883418eb367b19581ea9e75 (diff) | |
download | dwm-pixel-41259cc53bb01ca01564321894ffa027c1fd2928.tar.gz dwm-pixel-41259cc53bb01ca01564321894ffa027c1fd2928.zip |
Added urgent notification coloring
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 |