nx-libs
nx-libs copied to clipboard
Remove generation of core events, long live XI!
Investigate portability of this X.org Xserver commit:
commit a511c445debbd13e8c48146ecd2d7c97e793f788
Author: Peter Hutterer <[email protected]>
Date: Fri Sep 28 18:46:41 2007 +0930
Remove generation of core events, long live XI!
Let the drivers only generate XI events and put those into the event queue.
When processing events, generate core events as needed. This fixes a number of
problems with XKB and the DIX in general.
The previous approach was to put core events and XI events as separate events
into the event queue. When being processed, the server had no knowledge of
them coming from the same device state change. Anything that would then change
the state of the device accordingly was in danger of changing it twice,
leading to some funny (i.e. not funny at all) results.
Emulating core events while processing XI events fixes this, there is only one
path that actually changes the device state now. Although we have to be
careful when replaying events from synced devices, otherwise we may lose
events.
Note: XI has precedence over core for passive grabs, but core events are
delivered to the client first.
This removes the wrapping added in 340911d7243a7f1095d79b5b2dcfa81b145c2474
plus...
commit 2b075e97ec913ebe19290181e36bb169410b820b
Author: Peter Hutterer <[email protected]>
Date: Tue Oct 2 13:28:40 2007 +0930
mi: switch core keyboard on XI events, not only on core events.
We only get core events through the EQ in exceptional cases, so make sure we
actually swap the core keymap for XI events as well. Gives us back the ability
to have multiple keyboard layouts simultaneously.
@uli42: could you have a look at these (see #347) patches from X.org? Could they possibly fix the CAPs lock and and and NUM lock problems (toggle state being out of sync sometimes)?
@uli42: ^^^ (see previous post on #347)
$ git describe a511c445debbd13e8c48146ecd2d7c97e793f788
xorg-server-1.3.99.0-230-ga511c445d
-> Will come in automatically once my 1.4.2 patch is merged.
On Sa 18 Jan 2020 11:40:41 CET, Ulrich Sibiller wrote:
$ git describe a511c445debbd13e8c48146ecd2d7c97e793f788 xorg-server-1.3.99.0-230-ga511c445d
-> Will come in automatically once my 1.4.2 patch is merged.
Any PR for the 1.4.2 patch, yet?
Mike
DAS-NETZWERKTEAM c\o Technik- und Ökologiezentrum Eckernförde Mike Gabriel, Marienthaler str. 17, 24340 Eckernförde mobile: +49 (1520) 1976 148 landline: +49 (4351) 850 8940
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: [email protected], http://das-netzwerkteam.de
see #902 for the current state of that 1.4.2 efforts