(0,0) is also inside in the screen; from Sviatoslav Chagaev.

ok oga@
This commit is contained in:
okan 2011-03-22 10:54:42 +00:00
parent 3ff303658c
commit 9b4985439e

View File

@ -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);