mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
dix: Send MappingNotify when keyboard maps change.
If a slave device is attached to a master device, then we need to send a mapping notify to the client. Mapping notify needs to be sent if - different slave device but on same master - different master This gives you funny behaviour with the ClientPointer. When a MappingNotify is sent to the client, the client usually responds with a GetKeyboardMapping. This will retrieve the ClientPointer's keyboard mapping, regardless of which keyboard sent the last mapping notify request. So depending on the CP setting, your keyboard may change layout in each app...
This commit is contained in:
parent
2b1d946392
commit
51239f87ce
3 changed files with 44 additions and 46 deletions
|
|
@ -935,7 +935,10 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
|
|||
xkbMapNotify mn;
|
||||
xkbNewKeyboardNotify nkn;
|
||||
|
||||
if (!src || !dst || src == dst)
|
||||
if (src == dst)
|
||||
return TRUE;
|
||||
|
||||
if (!src || !dst)
|
||||
return FALSE;
|
||||
|
||||
/* client map */
|
||||
|
|
|
|||
Loading…
Reference in a new issue