// Copyright status: this file is in the public domain. #include "lx.h" #include "proto.h" #include "internal.h" void lx_ConvertSelection(LX_CONN *xc, LX_XID requestor, LX_ATOM selection, LX_ATOM target, LX_ATOM property, LX_TIME time) { unsigned char req[24]; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_ConvertSelection"); return; } lx__nochain(xc); req[0] = XP_REQ_ConvertSelection; req[1] = 0; // unused w_card16(&req[2],6); w_card32(&req[4],requestor); w_card32(&req[8],selection); w_card32(&req[12],target); w_card32(&req[16],property); w_card32(&req[20],time); lx__send_req(xc,&req[0],-1); }