diff options
author | Colin Hill <colin.james.hill@gmail.com> | 2011-02-08 18:06:40 -0800 |
---|---|---|
committer | Colin Hill <colin.james.hill@gmail.com> | 2011-02-08 18:06:40 -0800 |
commit | c6e50840fadc183a3de37a413b2785b1d180033c (patch) | |
tree | 636d033cdc687e68e5dd92eca058b968c613483e | |
parent | 4ad0c2c2633130dacf27b2c126d96cee2e142b09 (diff) |
Mouse event passing...
-rw-r--r-- | src/xNestedMouse.c | 7 | ||||
-rw-r--r-- | src/xNestedMouse.h | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/xNestedMouse.c b/src/xNestedMouse.c index ef82321..a89c361 100644 --- a/src/xNestedMouse.c +++ b/src/xNestedMouse.c @@ -22,9 +22,6 @@ #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) -int NestedMouseMotion = 1; -int NestedKeyPress = 2; - static InputInfoPtr NestedMousePreInit(InputDriverPtr drv, IDevPtr dev, int flags); static void NestedMouseUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags); static pointer NestedMousePlug(pointer module, pointer options, int *errmaj, int *errmin); @@ -197,5 +194,7 @@ void Load_Nested_Mouse(pointer module) { } void NestedPostInputEvent(NestedInputEvent event) { - + if (event.type == NestedMouseMotion) { + xf86Msg(X_ERROR, "Received mouse motion event: %i %i\n", event.data.mouseMotion.x, event.data.mouseMotion.y); + } } diff --git a/src/xNestedMouse.h b/src/xNestedMouse.h index ec8ce1d..24fd8c9 100644 --- a/src/xNestedMouse.h +++ b/src/xNestedMouse.h @@ -1,6 +1,6 @@ -extern int NestedMouseMotion; -extern int NestedKeyPress; +#define NestedMouseMotion 1 +#define NestedKeyPress 2 typedef struct { int x; |