diff options
author | okan <okan> | 2013-01-13 13:55:12 +0000 |
---|---|---|
committer | okan <okan> | 2013-01-13 13:55:12 +0000 |
commit | 9c6226faa81835067769d042f52520d01af0b70f (patch) | |
tree | 974f2ad28fa8d45fafae450ae839c92bbc0295d4 /screen.c | |
parent | 104c7d5de3a92da8b0c3514ef0692ff1e5d0ef82 (diff) | |
parent | 47aa485fa259965609d3e13cce7a03ac64b14e6f (diff) | |
download | cwm-9c6226faa81835067769d042f52520d01af0b70f.tar.gz cwm-9c6226faa81835067769d042f52520d01af0b70f.tar.xz cwm-9c6226faa81835067769d042f52520d01af0b70f.zip |
cvsimport
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/screen.c b/screen.c index 5f7af56..f63032e 100644 --- a/screen.c +++ b/screen.c @@ -132,7 +132,7 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y) struct geom geom; int i; - geom = sc->view; + geom = sc->work; if (sc->xinerama == NULL) return (geom); @@ -141,10 +141,10 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y) info = &sc->xinerama[i]; if (x >= info->x_org && x < info->x_org + info->width && y >= info->y_org && y < info->y_org + info->height) { - geom.x = info->x_org; - geom.y = info->y_org; - geom.w = info->width; - geom.h = info->height; + geom.x = info->x_org + sc->gap.left; + geom.y = info->y_org + sc->gap.top; + geom.w = info->width - (sc->gap.left + sc->gap.right); + geom.h = info->height - (sc->gap.top + sc->gap.bottom); break; } } |