diff options
author | okan | 2019-03-07 13:24:44 +0000 |
---|---|---|
committer | okan | 2019-03-07 13:24:44 +0000 |
commit | d68bdd9253084b00edebefeae250d710c235b9dc (patch) | |
tree | f610a84510a57bb82c8899a27fef818e08e918c2 /client.c | |
parent | 1eac3100010cec4135a6abbc0870036562190ae7 (diff) | |
download | cwm-d68bdd9253084b00edebefeae250d710c235b9dc.tar.gz |
check cc->gc directly
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.253 2019/03/07 13:14:41 okan Exp $ + * $OpenBSD: client.c,v 1.254 2019/03/07 13:24:44 okan Exp $ */ #include <sys/types.h> @@ -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; |