summary refs log tree commit diff
path: root/screen.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 /screen.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 'screen.c')
-rw-r--r--screen.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/screen.c b/screen.c
index b61df5c..14d0b5c 100644
--- a/screen.c
+++ b/screen.c
@@ -124,25 +124,22 @@ screen_updatestackingorder(struct screen_ctx *sc)
 	}
 }
 
-/*
- * Find which xinerama screen the coordinates (x,y) is on.
- */
 struct geom
-screen_find_xinerama(struct screen_ctx *sc, int x, int y, int flags)
+screen_area(struct screen_ctx *sc, int x, int y, int flags)
 {
 	struct region_ctx	*region;
-	struct geom		 geom = sc->work;
+	struct geom		 area = sc->work;
 
 	TAILQ_FOREACH(region, &sc->regionq, entry) {
 		if (x >= region->area.x && x < region->area.x+region->area.w &&
 		    y >= region->area.y && y < region->area.y+region->area.h) {
-			geom = region->area;
+			area = region->area;
 			break;
 		}
 	}
 	if (flags & CWM_GAP)
-		geom = screen_apply_gap(sc, geom);
-	return(geom);
+		area = screen_apply_gap(sc, area);
+	return(area);
 }
 
 void