about summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2019-03-07 13:24:44 +0000
committerokan <okan>2019-03-07 13:24:44 +0000
commit01be5b4e4a04e5f454d0e685c71c8023c7c0b731 (patch)
treeaa489f2b1bd263410532883e30eb0271de878550
parent823566a65309c047695f5f2b22a93e8f43a54396 (diff)
downloadcwm-01be5b4e4a04e5f454d0e685c71c8023c7c0b731.tar.gz
cwm-01be5b4e4a04e5f454d0e685c71c8023c7c0b731.tar.xz
cwm-01be5b4e4a04e5f454d0e685c71c8023c7c0b731.zip
check cc->gc directly
-rw-r--r--client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.c b/client.c
index ed98504..94f295a 100644
--- a/client.c
+++ b/client.c
@@ -960,12 +960,11 @@ void
 client_htile(struct client_ctx *cc)
 {
 	struct client_ctx	*ci;
-	struct group_ctx 	*gc = cc->gc;
 	struct screen_ctx 	*sc = cc->sc;
 	struct geom 		 area;
 	int 			 i, n, mh, x, w, h;
 
-	if (!gc)
+	if (!cc->gc)
 		return;
 	i = n = 0;
 
@@ -1032,12 +1031,11 @@ void
 client_vtile(struct client_ctx *cc)
 {
 	struct client_ctx	*ci;
-	struct group_ctx 	*gc = cc->gc;
 	struct screen_ctx 	*sc = cc->sc;
 	struct geom 		 area;
 	int 			 i, n, mw, y, w, h;
 
-	if (!gc)
+	if (!cc->gc)
 		return;
 	i = n = 0;