X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=dwm.c;h=a1a34e2db99b7d374dbb88067fb26d1765341ae4;hb=5d9ae3f3b7ad904218add1c2559eec9a7a073e3e;hp=68a9d1d8d4f0413e62f08b5ae68b47397c2027a0;hpb=59aa02a0750ebc82dbcb30897bbf427391edffa0;p=dwm.git diff --git a/dwm.c b/dwm.c index 68a9d1d..a1a34e2 100644 --- a/dwm.c +++ b/dwm.c @@ -44,7 +44,7 @@ * TODO: Idea: * I intend to not provide real Xinerama support, but instead having a Column * tilecols[] array which is used by tile(), and a Column maxcols[] arrays which is used by - * maximise(). Those arrays should be initialized in config.h. For simplicity + * monocle(). Those arrays should be initialized in config.h. For simplicity * reasons mwfact should be replaced with a more advanced method which * implements the same, but using the boundary between tilecols[0] and * tilecols[1] instead. Besides this, get rid of BARPOS and use instead the @@ -172,7 +172,7 @@ void killclient(const char *arg); void manage(Window w, XWindowAttributes *wa); void mappingnotify(XEvent *e); void maprequest(XEvent *e); -void maximise(void); +void monocle(void); void movemouse(Client *c); Client *nexttiled(Client *c); void propertynotify(XEvent *e); @@ -1086,7 +1086,7 @@ maprequest(XEvent *e) { } void -maximise(void) { +monocle(void) { Client *c; domwfact = dozoom = False; @@ -1870,10 +1870,11 @@ void updatewmhints(Client *c) { XWMHints *wmh; - if(c == sel) - return; if((wmh = XGetWMHints(dpy, c->win))) { - c->isurgent = (wmh->flags & XUrgencyHint) ? True : False; + if(c == sel) + sel->isurgent = False; + else + c->isurgent = (wmh->flags & XUrgencyHint) ? True : False; XFree(wmh); } }