mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
(0,0) is also inside in the screen; from Sviatoslav Chagaev.
ok oga@
This commit is contained in:
parent
3ff303658c
commit
9b4985439e
4
screen.c
4
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++) {
|
for (i = 0; i < sc->xinerama_no; i++) {
|
||||||
info = &sc->xinerama[i];
|
info = &sc->xinerama[i];
|
||||||
if (x > info->x_org && x < info->x_org + info->width &&
|
if (x >= info->x_org && x < info->x_org + info->width &&
|
||||||
y > info->y_org && y < info->y_org + info->height)
|
y >= info->y_org && y < info->y_org + info->height)
|
||||||
return (info);
|
return (info);
|
||||||
}
|
}
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user