diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-02-15 14:28:17 +1030 |
---|---|---|
committer | Peter Hutterer <whot@hyena.localdomain> | 2007-02-15 14:28:17 +1030 |
commit | 1ab0fa01391156d96cf6d3adc1076ad5216ac23d (patch) | |
tree | bec9bb58d200609c1fcfc9170ff4f0270a2f3142 /src | |
parent | 6a123cbfed985382f5b0c209d880dabeb8ee9733 (diff) |
Use flags byte in deviceEnterNotify and XDeviceCrossingEvents.
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 6 | ||||
-rw-r--r-- | src/XExtToWire.c | 7 |
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: |