#include "lx.h" #include "proto.h" #include "internal.h" // Tempting to use lx__simple_single for this, but that would be misuse // (LX_XID and LX_TIME are conceptually different, if the same under the hood) void lx_UngrabPointer(LX_CONN *xc, LX_TIME time) { unsigned char req[8]; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_UngrabPointer"); return; } req[0] = XP_REQ_UngrabPointer; req[1] = 0; w_card16(&req[2],2); w_card32(&req[4],time); lx__send_req(xc,&req[0],8); }