synchronize xkb layout group
|Reported by:||Antoine Martin||Owned by:||alas|
|Keywords:||x11 keyboard xkb||Cc:|
(received by email:) I attach small patch that make it possible to xpra server synchronize XKB layout group with a client.
Maybe you would like to integrate it somehow/someday.
Environment: arch linux x64, recent. both client and server are on thesame machine (with intention to simply isolate untrusted gui app).
Xorg/gdm/mutter (I am unsure about WM though). It is sufficient that client is under such conditions, server location does not matter.
Under this environment changing layouts is done not by loading another keymap (original keymap pushed from client to server is already including two required layouts) but just by changing keys group.
Because of that server does not know about layout 'change', and
continues to use wrong mappings.
Well, actually server does know a key group, just does not care of it.
This patch adds very simple check of incoming key's group and locks on it when it sees a change. That is it.
For me it works, for other environments need to be tested. Sorry for the poor code, I was using python for very first time. Also it is possible these mods were placed into wrong places, but I made the best I can
BTW, any plans to switching to python 3.x?