// Copyright status: this file is in the public domain. #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) || (eventmask & EVM_POINTEREVENT_MBZ)) { lx__bad_call(xc,"lx_ChangeActivePointerGrab"); return; } lx__nochain(xc); if (cursor == LX_CURSOR_None) cursor = 0; req[0] = LX_CORE_ChangeActivePointerGrab; req[1] = 0; // unused w_card16(&req[2],4); w_card32(&req[4],cursor); w_card32(&req[8],time); w_card16(&req[12],eventmask); w_card16(&req[14],0); // unused lx__send_req(xc,&req[0],-1); }