summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-06-06 20:45:53 -0700
committerKeith Packard <keithp@keithp.com>2010-06-06 21:24:04 -0700
commitbc26665661565918af484ccd17caad951010df60 (patch)
tree1f922d9d23c3b43974714c0df0715a467a231a5d /xkb
parentf03be727d647183a2176355ad0ac9a6735067be9 (diff)
Initialize private keys in test suite
Make sure all of the private keys used by the test code are initialized before being used. Signed-off-by: Keith Packard <keithp@keithp.com> Tested-by: Robert Hooker <sarvatt@ubuntu.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkb.c2
-rw-r--r--xkb/xkbActions.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index 04a137fe6..cbb46c62f 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -6707,7 +6707,7 @@ XkbExtensionInit(void)
if (!RT_XKBCLIENT)
return;
- if (!dixRegisterPrivateKey(&xkbDevicePrivateKeyRec, PRIVATE_DEVICE, 0))
+ if (!XkbInitPrivates())
return;
if ((extEntry = AddExtension(XkbName, XkbNumberEvents, XkbNumberErrors,
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index afc44ac44..c5030d04d 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -63,6 +63,11 @@ xkbUnwrapProc(DeviceIntPtr device, DeviceHandleProc proc,
backupproc,xkbUnwrapProc);
}
+Bool
+XkbInitPrivates(void)
+{
+ return dixRegisterPrivateKey(&xkbDevicePrivateKeyRec, PRIVATE_DEVICE, 0);
+}
void
XkbSetExtension(DeviceIntPtr device, ProcessInputProc proc)