浏览代码

small fix

Anselm R. Garbe 19 年之前
父节点
当前提交
f18ed615ae
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      main.c
  2. 2 2
      view.c

+ 1 - 0
main.c

@@ -55,6 +55,7 @@ cleanup()
 	XDestroyWindow(dpy, barwin);
 	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
 	XSync(dpy, False);
+	free(seltag);
 }
 
 static void

+ 2 - 2
view.c

@@ -41,7 +41,7 @@ reorder()
 static Client *
 nexttiled(Client *c)
 {
-	for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
+	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
 	return c;
 }
 
@@ -325,7 +325,7 @@ zoom(Arg *arg)
 		return;
 
 	if((c = sel) == nexttiled(clients))
-		if(!(c = nexttiled(c)))
+		if(!(c = nexttiled(c->next)))
 			return;
 	detach(c);
 	c->next = clients;