dix: require PointerProc and KeyboardProc to be passed into AllocDevicePair.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-08-05 09:32:50 +10:00
commit 26b83ad4a2
3 changed files with 23 additions and 8 deletions

View file

@ -54,6 +54,10 @@
#include "xichangehierarchy.h"
extern DeviceProc CorePointerProc;
extern DeviceProc CoreKeyboardProc;
/**
* Send the current state of the device hierarchy to all clients.
*/
@ -176,7 +180,9 @@ ProcXIChangeHierarchy(ClientPtr client)
strncpy(name, (char*)&c[1], c->name_len);
rc = AllocDevicePair(client, name, &ptr, &keybd, TRUE);
rc = AllocDevicePair(client, name, &ptr, &keybd,
CorePointerProc, CoreKeyboardProc,
TRUE);
if (rc != Success)
{
xfree(name);