summaryrefslogtreecommitdiff
path: root/hw/xnest
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-01-21 23:43:53 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-01-21 23:44:07 +1030
commitba315ae5ddd00763147a4b0cdcacba7691793dfc (patch)
treed5267e1b1b3971e583391842eeb75820a890b7ae /hw/xnest
parent6492d513c0022d70f838d1b2561442c7a41e401f (diff)
Xi: add XACE hooks for device creation (ChangeDeviceHierarchy)
AddInputDevice checks for permissions already, so all we do is modify a few callers to let AID sort it out.
Diffstat (limited to 'hw/xnest')
-rw-r--r--hw/xnest/Init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c
index 7b344e25f..de80cb578 100644
--- a/hw/xnest/Init.c
+++ b/hw/xnest/Init.c
@@ -89,8 +89,8 @@ InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
void
InitInput(int argc, char *argv[])
{
- xnestPointerDevice = AddInputDevice(xnestPointerProc, TRUE);
- xnestKeyboardDevice = AddInputDevice(xnestKeyboardProc, TRUE);
+ xnestPointerDevice = AddInputDevice(serverClient, xnestPointerProc, TRUE);
+ xnestKeyboardDevice = AddInputDevice(serverClient, xnestKeyboardProc, TRUE);
if (!xnestEvents)
xnestEvents = (xEvent *) xcalloc(sizeof(xEvent), GetMaximumEventsNum());