summaryrefslogtreecommitdiff
path: root/src/xlibclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xlibclient.c')
-rw-r--r--src/xlibclient.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xlibclient.c b/src/xlibclient.c
index c1e21ad..1eff59d 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -297,6 +297,11 @@ NestedClientCheckEvents(NestedClientPrivatePtr pPriv) {
break;
case MotionNotify:
+ if (!pPriv->dev) {
+ xf86DrvMsg(pPriv->scrnIndex, X_INFO, "Input device is not yet initializedXShmQueryExtension failed. Dropping XShm support.\n");
+ break;
+ }
+
NestedInputPostMouseMotionEvent(pPriv->dev,
((XMotionEvent*)&ev)->x,
((XMotionEvent*)&ev)->y);
@@ -304,11 +309,21 @@ NestedClientCheckEvents(NestedClientPrivatePtr pPriv) {
case ButtonPress:
case ButtonRelease:
+ if (!pPriv->dev) {
+ xf86DrvMsg(pPriv->scrnIndex, X_INFO, "Input device is not yet initializedXShmQueryExtension failed. Dropping XShm support.\n");
+ break;
+ }
+
NestedInputPostButtonEvent(pPriv->dev, ev.xbutton.button, ev.type == ButtonPress);
break;
case KeyPress:
case KeyRelease:
+ if (!pPriv->dev) {
+ xf86DrvMsg(pPriv->scrnIndex, X_INFO, "Input device is not yet initializedXShmQueryExtension failed. Dropping XShm support.\n");
+ break;
+ }
+
NestedInputPostKeyboardEvent(pPriv->dev, ev.xkey.keycode, ev.type == KeyPress);
break;
}