diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-17 13:50:25 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-17 13:50:25 -0700 |
commit | fb84be47db7cdaff406792c08e34670e8e0cbda9 (patch) | |
tree | acc159c021f40d90d5a6b0bd5c6e12f10eca38cd /dix/inpututils.c | |
parent | fae7ed62ad476114bd37b566202cf6b6546c0a1f (diff) | |
parent | 32b289e46cc2d5ec32ff0c4ba5bbfbf602afb388 (diff) |
Merge remote-tracking branch 'whot/next'
Diffstat (limited to 'dix/inpututils.c')
-rw-r--r-- | dix/inpututils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dix/inpututils.c b/dix/inpututils.c index 0a3d3d8b4..eeae2a74f 100644 --- a/dix/inpututils.c +++ b/dix/inpututils.c @@ -37,6 +37,7 @@ #include "xkbstr.h" #include "inpututils.h" #include "eventstr.h" +#include "scrnintstr.h" /* Check if a button map change is okay with the device. * Returns -1 for BadValue, as it collides with MappingBusy. */ @@ -619,6 +620,13 @@ void init_device_event(DeviceEvent *event, DeviceIntPtr dev, Time ms) event->sourceid = dev->id; } +Bool +point_on_screen(ScreenPtr pScreen, int x, int y) +{ + return x >= pScreen->x && x < pScreen->x + pScreen->width && + y >= pScreen->y && y < pScreen->y + pScreen->height; +} + /** * Delete the element with the key from the list, freeing all memory * associated with the element.. |