diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-08 23:14:20 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-08 23:28:28 +0930 |
commit | c68ca0c7b2c72df0501d26bf7f640029ff2d9568 (patch) | |
tree | d8be735c3d2686b9f4fd212de3344d834051c73b /hw/xnest/Init.c | |
parent | 34429d16d319ef2709c22a5c22f45d0e82c78b20 (diff) |
xnest: switch to using EventList rather than xEvents.
Diffstat (limited to 'hw/xnest/Init.c')
-rw-r--r-- | hw/xnest/Init.c | 7 |
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); |