forked from e16/e16
1
0
Fork 0

Fix xinerama head selection in certain situations.

SVN revision: 31886
This commit is contained in:
Kim Woelders 2007-09-30 12:32:35 +00:00
parent 857e03edda
commit 0f5d3cd0dd
1 changed files with 7 additions and 0 deletions

View File

@ -187,6 +187,13 @@ ScreenGetGeometry(int xi, int yi, int *px, int *py, int *pw, int *ph)
{
ps = p_screens + i;
if (xi >= ps->x && xi < ps->x + ps->w &&
yi >= ps->y && yi < ps->y + ps->h)
{
/* Inside - done */
head = i;
break;
}
dx = xi - (ps->x + ps->w / 2);
dy = yi - (ps->y + ps->h / 2);
dx = dx * dx + dy * dy;