summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2015-06-26 17:17:46 +0000
committerokan <okan>2015-06-26 17:17:46 +0000
commit66bc4162170b72f192c156b692b621643f1e5d52 (patch)
treee0a727b6004df74903e50dae2a4fd4ed7b5acbed /mousefunc.c
parent90288e2fc36a3b8be8f16b4f110b8af7e7a2ca12 (diff)
downloadcwm-66bc4162170b72f192c156b692b621643f1e5d52.tar.gz
cwm-66bc4162170b72f192c156b692b621643f1e5d52.tar.xz
cwm-66bc4162170b72f192c156b692b621643f1e5d52.zip
Mechanical change from xinerama to region backed areas.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mousefunc.c b/mousefunc.c
index e48833c..8ba56be 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -123,7 +123,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
 	XEvent			 ev;
 	Time			 ltime = 0;
 	struct screen_ctx	*sc = cc->sc;
-	struct geom		 xine;
+	struct geom		 area;
 	int			 px, py;
 
 	client_raise(cc);
@@ -149,15 +149,15 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg)
 			cc->geom.x = ev.xmotion.x_root - px - cc->bwidth;
 			cc->geom.y = ev.xmotion.y_root - py - cc->bwidth;
 
-			xine = screen_find_xinerama(sc,
+			area = screen_area(sc,
 			    cc->geom.x + cc->geom.w / 2,
 			    cc->geom.y + cc->geom.h / 2, CWM_GAP);
 			cc->geom.x += client_snapcalc(cc->geom.x,
 			    cc->geom.x + cc->geom.w + (cc->bwidth * 2),
-			    xine.x, xine.x + xine.w, sc->snapdist);
+			    area.x, area.x + area.w, sc->snapdist);
 			cc->geom.y += client_snapcalc(cc->geom.y,
 			    cc->geom.y + cc->geom.h + (cc->bwidth * 2),
-			    xine.y, xine.y + xine.h, sc->snapdist);
+			    area.y, area.y + area.h, sc->snapdist);
 
 			client_move(cc);
 			break;