diff options
| author | tim <tim@capstone09.cs.pdx.edu> | 2011-02-08 18:46:27 -0800 |
|---|---|---|
| committer | tim <tim@capstone09.cs.pdx.edu> | 2011-02-08 18:46:27 -0800 |
| commit | 598794c4de2c00e952a44f840976d61e41f5e46b (patch) | |
| tree | a051119454df444a248606706a28659aa1073fbe /src/xlibclient.c | |
| parent | 7347714cee7b9259312af993e68cd6d4347532ce (diff) | |
| parent | b093ac73332a1bb926994c8fea217f410f59183c (diff) | |
Merge branch 'master' of github.com:colinhect/xf86-video-nested
Diffstat (limited to 'src/xlibclient.c')
| -rw-r--r-- | src/xlibclient.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xlibclient.c b/src/xlibclient.c index ddb57f5..9a15a6b 100644 --- a/src/xlibclient.c +++ b/src/xlibclient.c @@ -34,6 +34,8 @@ #include "client.h" +#include "xNestedMouse.h" + struct NestedClientPrivate { Display *display; int screenNumber; @@ -266,6 +268,17 @@ NestedClientTimerCallback(NestedClientPrivatePtr pPriv) { } if (ev.type == MotionNotify) { + + // Create a nested input event and send it to the input driver. + NestedInputEvent nev; + nev.type = NestedMouseMotion; + + nev.data.mouseMotion.x = ((XMotionEvent*)&ev)->x; + nev.data.mouseMotion.y = ((XMotionEvent*)&ev)->y; + + NestedPostInputEvent(nev); + + /* XDrawString(pPriv->display, pPriv->window, DefaultGC(pPriv->display, pPriv->screenNumber), ((XMotionEvent*)&ev)->x, ((XMotionEvent*)&ev)->y, @@ -274,6 +287,7 @@ NestedClientTimerCallback(NestedClientPrivatePtr pPriv) { DefaultGC(pPriv->display, pPriv->screenNumber), ((XMotionEvent*)&ev)->x_root, ((XMotionEvent*)&ev)->y_root, msg2, strlen(msg2)); + */ } if (ev.type == EnterNotify) { |
