Input: Add flags to DeviceEvent
Add a flags member which will be copied wholesale into the resultant xXIDeviceEvent. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
afb1fe695d
commit
5d62c32981
|
@ -605,6 +605,7 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi)
|
||||||
xde->root_x = FP1616(ev->root_x, ev->root_x_frac);
|
xde->root_x = FP1616(ev->root_x, ev->root_x_frac);
|
||||||
xde->root_y = FP1616(ev->root_y, ev->root_y_frac);
|
xde->root_y = FP1616(ev->root_y, ev->root_y_frac);
|
||||||
|
|
||||||
|
xde->flags = ev->flags;
|
||||||
if (ev->key_repeat)
|
if (ev->key_repeat)
|
||||||
xde->flags |= XIKeyRepeat;
|
xde->flags |= XIKeyRepeat;
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ struct _DeviceEvent
|
||||||
Window root; /**< Root window of the event */
|
Window root; /**< Root window of the event */
|
||||||
int corestate; /**< Core key/button state BEFORE the event */
|
int corestate; /**< Core key/button state BEFORE the event */
|
||||||
int key_repeat; /**< Internally-generated key repeat event */
|
int key_repeat; /**< Internally-generated key repeat event */
|
||||||
|
uint32_t flags; /**< Flags to be copied into the generated event */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue