mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
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:
parent
6a500fdd4d
commit
26b83ad4a2
3 changed files with 23 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue