about summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2020-02-07 18:53:41 +0000
committerokan <okan>2020-02-07 18:53:41 +0000
commit7a88b2bdb2789e549ed4caab37c814198e347696 (patch)
tree2b4d5b386b856bda5e03d50cba3c4c31a014a5d7
parentd3410dd10d9c199521f92fcf45a43766bcd8f8d3 (diff)
downloadcwm-7a88b2bdb2789e549ed4caab37c814198e347696.tar.gz
cwm-7a88b2bdb2789e549ed4caab37c814198e347696.tar.xz
cwm-7a88b2bdb2789e549ed4caab37c814198e347696.zip
Allow the 'empty' group clients to be window-{h,v}tile'd.
Behaviour (or lack there of) noticed by Raf Czlonka.
-rw-r--r--client.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/client.c b/client.c
index 0187f4e..5ad328f 100644
--- a/client.c
+++ b/client.c
@@ -971,10 +971,7 @@ client_htile(struct client_ctx *cc)
 	struct geom 		 area;
 	int 			 i, n, mh, x, w, h;
 
-	if (!cc->gc)
-		return;
 	i = n = 0;
-
 	area = screen_area(sc,
 	    cc->geom.x + cc->geom.w / 2,
 	    cc->geom.y + cc->geom.h / 2, CWM_GAP);
@@ -1042,10 +1039,7 @@ client_vtile(struct client_ctx *cc)
 	struct geom 		 area;
 	int 			 i, n, mw, y, w, h;
 
-	if (!cc->gc)
-		return;
 	i = n = 0;
-
 	area = screen_area(sc,
 	    cc->geom.x + cc->geom.w / 2,
 	    cc->geom.y + cc->geom.h / 2, CWM_GAP);