summaryrefslogtreecommitdiff
path: root/app/cwm/screen.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2015-06-26 17:17:47 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2015-06-26 17:17:47 +0000
commitf3c7e33013cdb221cc8c7c13144f82969b41b8df (patch)
tree03587d80508962647aee07c7cb1633359ad61f7d /app/cwm/screen.c
parenta628b069e569697e8db82fe00d45c55b1657f8db (diff)
Mechanical change from xinerama to region backed areas.
Diffstat (limited to 'app/cwm/screen.c')
-rw-r--r--app/cwm/screen.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/app/cwm/screen.c b/app/cwm/screen.c
index 9f0519454..04d42ac27 100644
--- a/app/cwm/screen.c
+++ b/app/cwm/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 <sys/types.h>
@@ -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