summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-07-10 09:10:22 +0100
committerKeith Packard <keithp@keithp.com>2012-07-10 23:12:39 -0700
commit59c2c4f645b4d782599c274f4bc752de9623d308 (patch)
tree9b4fe2f480bcd1bcf0b058f1ba5918bdc1bc0727 /dix
parentf937c3d50157a9a42d2f2f10590b6b139ce18a29 (diff)
AllocDevicePair: Ensure XKB privates are initialised
Since we call directly into XKB and may be doing so before the extension has been initialised, make sure its privates are set up first. XTest had a hack to do this itself, but seems cleaner to just make sure we do it in AllocDevicePair. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/devices.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/devices.c b/dix/devices.c
index 207b78b87..9cf04ed3f 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -2674,6 +2674,8 @@ AllocDevicePair(ClientPtr client, const char *name,
*ptr = *keybd = NULL;
+ XkbInitPrivates();
+
pointer = AddInputDevice(client, ptr_proc, TRUE);
if (!pointer)