From 0a8714c24e91e851245d33469341663bf594ab95 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 26 Jun 2015 17:17:46 +0000 Subject: Mechanical change from xinerama to region backed areas. --- screen.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 9f05194..04d42ac 100644 --- a/screen.c +++ b/screen.c @@ -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: screen.c,v 1.73 2015/06/26 16:11:21 okan Exp $ + * $OpenBSD: screen.c,v 1.74 2015/06/26 17:17:46 okan Exp $ */ #include @@ -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 -- cgit v1.2.3-2-gb3c3