summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/XExtInt.c6
-rw-r--r--src/XExtToWire.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 3384e4a..4f1f824 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -723,6 +723,12 @@ XInputWireToEvent(dpy, re, event)
ev->state = ev2->state;
ev->mode = ev2->mode;
ev->deviceid = ev2->deviceid & DEVICE_BITS;
+ if (ev2->flags & ELFlagSameScreen) {
+ ev->same_screen = True;
+ }
+ if (ev2->flags & ELFlagFocus) {
+ ev->focus = True;
+ }
return (ENQUEUE_EVENT);
}
break;
diff --git a/src/XExtToWire.c b/src/XExtToWire.c
index 955f522..e0e9565 100644
--- a/src/XExtToWire.c
+++ b/src/XExtToWire.c
@@ -478,6 +478,13 @@ _XiEventToWire(dpy, re, event, count)
elev->rootY = ev->y_root;
elev->state = ev->state;
elev->mode = ev->mode;
+ elev->flags = 0;
+ if (ev->same_screen) {
+ elev->flags |= ELFlagSameScreen;
+ }
+ if (ev->focus) {
+ elev->flags |= ELFlagFocus;
+ }
break;
}
case XI_PointerKeyboardPairingChangedNotify: