summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2009-08-27 01:38:08 +0000
committerokan <okan>2009-08-27 01:38:08 +0000
commit7295c511559f292d849cfe037747c8321fc615e6 (patch)
tree560372a9e9e62fbbe366e722e1cc7c61335c5990 /mousefunc.c
parentb9f83670895f8c61d11e32515cd696299d2d92ea (diff)
downloadcwm-7295c511559f292d849cfe037747c8321fc615e6.tar.gz
cwm-7295c511559f292d849cfe037747c8321fc615e6.tar.xz
cwm-7295c511559f292d849cfe037747c8321fc615e6.zip
unroll the CCTOSC macro; from Thomas Pfaff
ok oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index fdb55fa..479454d 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -44,7 +44,7 @@ mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my)
 static void
 mousefunc_sweep_draw(struct client_ctx *cc)
 {
-	struct screen_ctx	*sc = CCTOSC(cc);
+	struct screen_ctx	*sc = cc->sc;
 	char			 asize[10]; /* fits "nnnnxnnnn\0" */
 	int			 width, height, width_size, width_name;
 
@@ -72,7 +72,7 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
 {
 	XEvent			 ev;
 	Time			 time = 0;
-	struct screen_ctx	*sc = CCTOSC(cc);
+	struct screen_ctx	*sc = cc->sc;
 	int			 x = cc->geom.x, y = cc->geom.y;
 
 	client_raise(cc);