#include "lx.h" #include "proto.h" #include "internal.h" void lx_ChangeActivePointerGrab(LX_CONN *xc, unsigned int eventmask, LX_XID cursor, LX_TIME time) { unsigned char req[16]; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_ChangeActivePointerGrab"); return; } if (cursor == LX_CURSOR_None) cursor = 0; req[0] = XP_REQ_ChangeActivePointerGrab; req[1] = 0; w_card16(&req[2],4); w_card32(&req[4],cursor); w_card16(&req[8],time); w_card32(&req[10],eventmask); lx__send_req(xc,&req[0],-1); }