summaryrefslogtreecommitdiff
path: root/xserver/test/xi2/protocol-xigetclientpointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/test/xi2/protocol-xigetclientpointer.c')
-rw-r--r--xserver/test/xi2/protocol-xigetclientpointer.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/xserver/test/xi2/protocol-xigetclientpointer.c b/xserver/test/xi2/protocol-xigetclientpointer.c
index 570c53e06..9c38bd720 100644
--- a/xserver/test/xi2/protocol-xigetclientpointer.c
+++ b/xserver/test/xi2/protocol-xigetclientpointer.c
@@ -40,30 +40,15 @@
#include "protocol-common.h"
-struct {
+static struct {
int cp_is_set;
DeviceIntPtr dev;
int win;
} test_data;
-static ClientRec client_window;
+ClientRec client_window;
static ClientRec client_request;
-int
-__wrap_dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client,
- Mask access)
-{
- if (rid == ROOT_WINDOW_ID)
- return BadWindow;
-
- if (rid == CLIENT_WINDOW_ID) {
- *pClient = &client_window;
- return Success;
- }
-
- return __real_dixLookupClient(pClient, rid, client, access);
-}
-
static void
reply_XIGetClientPointer(ClientPtr client, int len, char *data, void *userdata)
{
@@ -157,7 +142,7 @@ test_XIGetClientPointer(void)
}
int
-main(int argc, char **argv)
+protocol_xigetclientpointer_test(void)
{
init_simple();
client_window = init_client(0, NULL);