diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2012-11-16 16:51:59 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2012-11-16 17:02:14 +0000 |
commit | a7482576c90846fe1c8e1d28420cf51acb73c7c1 (patch) | |
tree | 17b44a0bb48921c257898d02edf978d14f34b000 /xserver/test/xtest.c | |
parent | 8c0b9a29cc37b38638970b5187e048ebf931ea2b (diff) |
Update to xserver 1.13
Diffstat (limited to 'xserver/test/xtest.c')
-rw-r--r-- | xserver/test/xtest.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xserver/test/xtest.c b/xserver/test/xtest.c index aeca669d8..e5e5241b7 100644 --- a/xserver/test/xtest.c +++ b/xserver/test/xtest.c @@ -30,8 +30,10 @@ #include "inputstr.h" #include "scrnintstr.h" #include "exevents.h" +#include "extinit.h" #include "xkbsrv.h" #include "xserver-properties.h" +#include "syncsrv.h" /** */ @@ -47,9 +49,15 @@ device_cursor_init(DeviceIntPtr dev, ScreenPtr screen) } static void +device_cursor_cleanup(DeviceIntPtr dev, ScreenPtr screen) +{ +} + +static void xtest_init_devices(void) { ScreenRec screen; + ClientRec server_client; /* random stuff that needs initialization */ memset(&screen, 0, sizeof(screen)); @@ -60,10 +68,14 @@ xtest_init_devices(void) screen.width = 640; screen.height = 480; screen.DeviceCursorInitialize = device_cursor_init; + screen.DeviceCursorCleanup = device_cursor_cleanup; dixResetPrivates(); + serverClient = &server_client; + InitClient(serverClient, 0, (pointer) NULL); + if (!InitClientResources(serverClient)) /* for root resources */ + FatalError("couldn't init server resources"); InitAtoms(); - - XkbInitPrivates(); + SyncExtensionInit(); /* this also inits the xtest devices */ InitCoreDevices(); |