diff options
author | okan <okan> | 2011-03-22 10:54:42 +0000 |
---|---|---|
committer | okan <okan> | 2011-03-22 10:54:42 +0000 |
commit | 9b4985439e1a1f5acd54cf21039307dba660eed4 (patch) | |
tree | 7236178b61d51b8667626adf185b599ca9b5715c /screen.c | |
parent | 3ff303658c1baf85e5248138a62781c48760945c (diff) | |
download | cwm-9b4985439e1a1f5acd54cf21039307dba660eed4.tar.gz cwm-9b4985439e1a1f5acd54cf21039307dba660eed4.tar.xz cwm-9b4985439e1a1f5acd54cf21039307dba660eed4.zip |
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
ok oga@
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c index a58ece4..da3b3c5 100644 --- a/screen.c +++ b/screen.c @@ -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); |