mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 14:30:13 +01:00
xkb: Guard against SIGIO updates during PointerKeys.
In theory, an event coming in during GPE could reset our lastSlave, leading
to rather interesting events lateron.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Simon Thum <simon.thum@gmx.de>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit 6c42c8c356)
This commit is contained in:
parent
37c3d2aef0
commit
3e76abe1c1
1 changed files with 2 additions and 1 deletions
|
|
@ -64,11 +64,12 @@ XkbDDXFakeDeviceButton(DeviceIntPtr dev,Bool press,int button)
|
|||
return;
|
||||
|
||||
events = InitEventList(GetMaximumEventsNum());
|
||||
OsBlockSignals();
|
||||
nevents = GetPointerEvents(events, ptr,
|
||||
press ? ButtonPress : ButtonRelease, button,
|
||||
0 /* flags */, 0 /* first */,
|
||||
0 /* num_val */, NULL);
|
||||
|
||||
OsReleaseSignals();
|
||||
|
||||
for (i = 0; i < nevents; i++)
|
||||
mieqProcessDeviceEvent(ptr, (InternalEvent*)events[i].event, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue