diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:54:43 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:54:43 +0000 |
commit | c6fb51d9c4f0df7e0732301d99a99e034d7f42f8 (patch) | |
tree | 94ae7f6056b37151f3df1b2afc77d8ab1d0e1d3b | |
parent | 74dd2d0e93d9e28188b136b4e2e3910c129f63d1 (diff) |
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
ok oga@
-rw-r--r-- | app/cwm/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/screen.c b/app/cwm/screen.c index 9a5ad56f5..3ef4ccb9c 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. * - * $Id: screen.c,v 1.26 2010/01/27 03:04:50 okan Exp $ + * $Id: screen.c,v 1.27 2011/03/22 10:54:42 okan Exp $ */ #include <sys/param.h> @@ -101,8 +101,8 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y) for (i = 0; i < sc->xinerama_no; i++) { 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) + if (x >= info->x_org && x < info->x_org + info->width && + y >= info->y_org && y < info->y_org + info->height) return (info); } return (NULL); |