diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-30 16:58:04 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-04 13:01:33 +1000 |
commit | 911e7368bf9c00d327e994a6f7a1d8d8f9b83c72 (patch) | |
tree | cbe7ae09f12d41d344189cc492c77c627c31fca1 /dix/events.c | |
parent | d0a7cd759d4741a1ae118d579c90704410cde244 (diff) |
Move pointOnScreen to inpututils.c
We need this from other files too.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/dix/events.c b/dix/events.c index 0f5b042e3..f87d2bbf9 100644 --- a/dix/events.c +++ b/dix/events.c @@ -525,13 +525,6 @@ SyntheticMotion(DeviceIntPtr dev, int x, int y) { static void PostNewCursor(DeviceIntPtr pDev); static Bool -pointOnScreen(ScreenPtr pScreen, int x, int y) -{ - return x >= pScreen->x && x < pScreen->x + pScreen->width && - y >= pScreen->y && y < pScreen->y + pScreen->height; -} - -static Bool XineramaSetCursorPosition( DeviceIntPtr pDev, int x, @@ -550,13 +543,13 @@ XineramaSetCursorPosition( x += screenInfo.screens[0]->x; y += screenInfo.screens[0]->y; - if(!pointOnScreen(pScreen, x, y)) + if(!point_on_screen(pScreen, x, y)) { FOR_NSCREENS(i) { if(i == pScreen->myNum) continue; - if(pointOnScreen(screenInfo.screens[i], x, y)) + if(point_on_screen(screenInfo.screens[i], x, y)) { pScreen = screenInfo.screens[i]; break; |