summaryrefslogtreecommitdiff
path: root/Xi/chdevhier.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/chdevhier.c')
-rw-r--r--Xi/chdevhier.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Xi/chdevhier.c b/Xi/chdevhier.c
index db16349af..631857d58 100644
--- a/Xi/chdevhier.c
+++ b/Xi/chdevhier.c
@@ -117,7 +117,11 @@ ProcXChangeDeviceHierarchy(ClientPtr client)
if (!c->sendCore)
ptr->coreEvents = keybd->coreEvents = FALSE;
-
+#ifdef XKB
+ /* supplying NULL for rules simply means we re-use
+ whatever ruleset we used for the previous devices. */
+ XkbSetRulesDflts(NULL, "pc105", "us", NULL, NULL);
+#endif
ActivateDevice(ptr);
ActivateDevice(keybd);