diff options
author | Daniel Stone <daniel@fooishbar.org> | 2010-09-20 15:03:05 +1000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2011-01-06 17:10:41 +0000 |
commit | 690476250f58616d5156317e01ba547497f4331a (patch) | |
tree | e597aa3730ac5a0a20955dd325800b89a75b7c07 /include | |
parent | 07a892cd8276f8092de95f1909f2ebec6f5fdf08 (diff) |
Input: Pass sprite instead of device to XYToWindow, make non-static
XYToWindow calculates the position of the cursor and updates the sprite
trace, but does nothing else with the device. Pass a SpritePtr instead
so we can update an alternate focus instead of hardcoding the device's
sprite. Also make this function non-static, so we can use it elsewhere.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index a20f8a07a..c1db5444f 100644 --- a/include/input.h +++ b/include/input.h @@ -533,6 +533,7 @@ void FixUpEventFromWindow(SpritePtr pSprite, WindowPtr pWin, Window child, Bool calcChild); +extern WindowPtr XYToWindow(SpritePtr pSprite, int x, int y); extern int EventIsDeliverable(DeviceIntPtr dev, InternalEvent* event, WindowPtr win); /** |