diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c index f1da0ad0fb..921e53b6ba 100644 --- a/Xi/xipassivegrab.c +++ b/Xi/xipassivegrab.c @@ -169,6 +169,8 @@ ProcXIPassiveGrabDevice(ClientPtr client) param.other_devices_mode = stuff->grab_mode; } + x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE }; + if (stuff->cursor != None) { ret = dixLookupResourceByType(&tmp, stuff->cursor, X11_RESTYPE_CURSOR, client, DixUseAccess); @@ -178,8 +180,6 @@ ProcXIPassiveGrabDevice(ClientPtr client) } } - x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE }; - ret = dixLookupWindow((WindowPtr *) &tmp, stuff->grab_window, client, DixSetAttrAccess);