diff options
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c index 501661f..2d10692 100644 --- a/dwm.c +++ b/dwm.c @@ -61,7 +61,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel, SchemeTitle }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeUrg, SchemeTitle }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetDesktopNames, NetDesktopViewport, NetNumberOfDesktops, NetCurrentDesktop, NetLast }; /* EWMH atoms */ @@ -2096,8 +2096,8 @@ updatewmhints(Client *c) if (c == selmon->sel && wmh->flags & XUrgencyHint) { wmh->flags &= ~XUrgencyHint; XSetWMHints(dpy, c->win, wmh); - } else - c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0; + } else if ((c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0)) + XSetWindowBorder(dpy, c->win, scheme[SchemeUrg][ColBorder].pixel); if (wmh->flags & InputHint) c->neverfocus = !wmh->input; else |