summaryrefslogtreecommitdiff
path: root/hw/xnest/Init.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-06-08 23:14:20 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-08 23:28:28 +0930
commitc68ca0c7b2c72df0501d26bf7f640029ff2d9568 (patch)
treed8be735c3d2686b9f4fd212de3344d834051c73b /hw/xnest/Init.c
parent34429d16d319ef2709c22a5c22f45d0e82c78b20 (diff)
xnest: switch to using EventList rather than xEvents.
Diffstat (limited to 'hw/xnest/Init.c')
-rw-r--r--hw/xnest/Init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c
index de80cb578..f52445c00 100644
--- a/hw/xnest/Init.c
+++ b/hw/xnest/Init.c
@@ -45,7 +45,7 @@ is" without express or implied warranty.
Bool xnestDoFullGeneration = True;
-xEvent *xnestEvents = NULL;
+EventList *xnestEvents = NULL;
void
InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
@@ -92,10 +92,7 @@ InitInput(int argc, char *argv[])
xnestPointerDevice = AddInputDevice(serverClient, xnestPointerProc, TRUE);
xnestKeyboardDevice = AddInputDevice(serverClient, xnestKeyboardProc, TRUE);
- if (!xnestEvents)
- xnestEvents = (xEvent *) xcalloc(sizeof(xEvent), GetMaximumEventsNum());
- if (!xnestEvents)
- FatalError("couldn't allocate room for events\n");
+ GetEventList(&xnestEvents);
RegisterPointerDevice(xnestPointerDevice);
RegisterKeyboardDevice(xnestKeyboardDevice);