X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=client.c;h=b122427cace994f9768fa3ea76d544bea44470af;hp=af13797094c6f2024580af7cafbaaa8b8899985f;hb=f8181f64e2ba4fca4e85036c48cf90a2151794fc;hpb=0045ad87dfb32f35fc17b5b8942049cfe84d623c diff --git a/client.c b/client.c index af13797..b122427 100644 --- a/client.c +++ b/client.c @@ -90,7 +90,7 @@ focus(Client *c) { sel = c; if(old) { grabbuttons(old, False); - drawclient(old); + XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]); } } if(c) { @@ -98,11 +98,12 @@ focus(Client *c) { c->snext = stack; stack = c; grabbuttons(c, True); - drawclient(c); + XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); } else XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + drawstatus(); } Client *