瀏覽代碼

fix of resize (thanks Sander for the hint!)

Anselm R. Garbe 18 年之前
父節點
當前提交
8fcc4ff0ae
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client.c

+ 2 - 2
client.c

@@ -272,9 +272,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
 			w -= (w - c->basew) % c->incw;
 		if(c->inch)
 			h -= (h - c->baseh) % c->inch;
-		if(w <= 0 || h <= 0)
-			return;
 	}
+	if(w <= 0 || h <= 0)
+		return;
 	/* offscreen appearance fixes */
 	if(x > sw)
 		x = sw - w - 2 * c->border;