diff options
Diffstat (limited to 'xserver/test/xi2/protocol-xisetclientpointer.c')
-rw-r--r-- | xserver/test/xi2/protocol-xisetclientpointer.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/xserver/test/xi2/protocol-xisetclientpointer.c b/xserver/test/xi2/protocol-xisetclientpointer.c index 90f1b94c3..6584bb9cc 100644 --- a/xserver/test/xi2/protocol-xisetclientpointer.c +++ b/xserver/test/xi2/protocol-xisetclientpointer.c @@ -48,24 +48,9 @@ #include "protocol-common.h" -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 request_XISetClientPointer(xXISetClientPointerReq * req, int error) { @@ -137,7 +122,7 @@ test_XISetClientPointer(void) } int -main(int argc, char **argv) +protocol_xisetclientpointer_test(void) { init_simple(); client_window = init_client(0, NULL); |