#include #include #include #include #include #include void lx_shape_SelectInput(LX_CONN *xc, LX_XID win, int enb) { LX_SHAPE_PRIV *p; unsigned char req[12]; if (lxxi_conn_failed(xc)) { lxxi_bad_call(xc,"ls_shape_GetRectangles"); return; } p = lx_get_private(xc,lx_shape__px); if (! p) { lxxi_bad_call(xc,"lx_shape_SelectInput"); return; } lxxi_nochain(xc); req[0] = p->major; req[1] = SHAPE_SelectInput; lxxi_w_card16(&req[2],3); lxxi_w_card32(&req[4],win); req[8] = lxxi_boolean_to_proto(enb); req[9] = 0; req[10] = 0; req[11] = 0; lxxi_send_req(xc,req,-1); }