X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=view.c;h=fd07fc5b52fddfaa3ab64f2fc45ec9695ae61faa;hb=dee5ea23358ec0a9684265dc8cb1d2e4d56e9b84;hp=bc1f4e25cb3da31289fc04dfe220823125a37bf0;hpb=f8181f64e2ba4fca4e85036c48cf90a2151794fc;p=dwm.git diff --git a/view.c b/view.c index bc1f4e2..fd07fc5 100644 --- a/view.c +++ b/view.c @@ -185,10 +185,9 @@ restack(void) { Client *c; XEvent ev; - if(!sel) { - drawstatus(); + drawstatus(); + if(!sel) return; - } if(sel->isfloat || arrange == dofloat) XRaiseWindow(dpy, sel->win); if(arrange != dofloat) {