Quoth Daniel Déchelotte,
How does it compare to
int wScreenKeepInside(WScreen * scr, int *x, int *y, int width, int height)
found in screen.c?
The new function calls:
>> + WMRect rect = wGetRectForHead(scr,
>> wGetHeadForPointerLocation(scr));
That will find an area the size of the head containing the mouse
pointer.
wScreenKeepInside() calls:
head = wGetHeadForRect(scr, rect);
rect = wGetRectForHead(scr, head);
That will find an area the size of the head containing the largest
portion of the x/y/width/height arguments.
In a multi-head setup the two areas may not be the same. Think
pointer at the right edge of the leftmost head.
--
To unsubscribe, send mail to [email protected].