X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=66daba3ab4335f000492c390a7a905449e11f8c3;hp=363c2028510af09a4a2042ac563c70b52785801f;hb=4426032450777e63ac9a8967cd67382497954c51;hpb=e0f039789643381485dab5c467f66db5162d4f63 diff --git a/dwm.c b/dwm.c index 363c202..66daba3 100644 --- a/dwm.c +++ b/dwm.c @@ -2009,11 +2009,11 @@ viewprevtag(const char *arg) { void zoom(const char *arg) { - Client *c; + Client *c = sel; if(!sel || !dozoom || sel->isfloating) return; - if((c = sel) == nexttiled(clients, c->monitor)) + if(c == nexttiled(clients, c->monitor)) if(!(c = nexttiled(c->next, c->monitor))) return; detach(c);