about summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2012-07-04 18:07:12 +0000
committerokan <okan>2012-07-04 18:07:12 +0000
commit3681b26914c3097295c37027bbf7eede76e308bf (patch)
tree3535bdf1616c8a72d2ea6c5dfa8b654ab7c8cd31
parent8c7964468fe82bfd557165f7b42874933fc2a586 (diff)
downloadcwm-3681b26914c3097295c37027bbf7eede76e308bf.tar.gz
cwm-3681b26914c3097295c37027bbf7eede76e308bf.tar.xz
cwm-3681b26914c3097295c37027bbf7eede76e308bf.zip
use the screen ctx since we already have it assigned.
-rw-r--r--kbfunc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kbfunc.c b/kbfunc.c
index fbb603d..b739aec 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -91,20 +91,20 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg)
 		cc->geom.y += my;
 		if (cc->geom.y + cc->geom.height < 0)
 			cc->geom.y = -cc->geom.height;
-		if (cc->geom.y > cc->sc->ymax - 1)
-			cc->geom.y = cc->sc->ymax - 1;
+		if (cc->geom.y > sc->ymax - 1)
+			cc->geom.y = sc->ymax - 1;
 
 		cc->geom.x += mx;
 		if (cc->geom.x + cc->geom.width < 0)
 			cc->geom.x = -cc->geom.width;
-		if (cc->geom.x > cc->sc->xmax - 1)
-			cc->geom.x = cc->sc->xmax - 1;
+		if (cc->geom.x > sc->xmax - 1)
+			cc->geom.x = sc->xmax - 1;
 
 		cc->geom.x += client_snapcalc(cc->geom.x,
-		    cc->geom.width, cc->sc->xmax,
+		    cc->geom.width, sc->xmax,
 		    cc->bwidth, Conf.snapdist);
 		cc->geom.y += client_snapcalc(cc->geom.y,
-		    cc->geom.height, cc->sc->ymax,
+		    cc->geom.height, sc->ymax,
 		    cc->bwidth, Conf.snapdist);
 
 		client_move(cc);