<div style="font-family: arial; font-size: 14px;"><div style="font-family: arial; font-size: 14px;">Hi,<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">I'm trying to send keyboard events with XTest, but for some reason, the release event I send does not seem to have any effect unless I call `xcb_request_check()` on either one of the returned cookies. My code is as follows:<br></div></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">```c<br></div><div style="font-family: arial; font-size: 14px;">#include <xcb/xcb.h><br></div><div style="font-family: arial; font-size: 14px;">#include <xcb/xtest.h><br></div><div style="font-family: arial; font-size: 14px;">#include <xcb/xcb_keysyms.h><br></div><div style="font-family: arial; font-size: 14px;">#include <stdlib.h><br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">int main(){<br></div><div style="font-family: arial; font-size: 14px;">xcb_connection_t* conn = xcb_connect(NULL,NULL);<br></div><div style="font-family: arial; font-size: 14px;">xcb_key_symbols_t* keysyms = xcb_key_symbols_alloc(conn);<br></div><div style="font-family: arial; font-size: 14px;">xcb_keycode_t* keycode = xcb_key_symbols_get_keycode(keysyms,'a');<br></div><div style="font-family: arial; font-size: 14px;">xcb_key_symbols_free(keysyms);<br></div><div style="font-family: arial; font-size: 14px;">xcb_test_fake_input(conn,XCB_KEY_PRESS,*keycode,XCB_CURRENT_TIME,XCB_NONE,0,0,0);<br></div><div style="font-family: arial; font-size: 14px;">xcb_test_fake_input(conn,XCB_KEY_RELEASE,*keycode,XCB_CURRENT_TIME,XCB_NONE,0,0,0);<br></div><div style="font-family: arial; font-size: 14px;">xcb_flush(conn);<br></div><div style="font-family: arial; font-size: 14px;">free(keycode);<br></div><div style="font-family: arial; font-size: 14px;">xcb_disconnect(conn);<br></div><div style="font-family: arial; font-size: 14px;">}<br></div><div style="font-family: arial; font-size: 14px;">```<br></div><div style="font-family: arial; font-size: 14px;">This continues typing 'a' until I press a key manually. Now, if I store the returned cookie and call `xcb_request_check()`, it just presses it once, as I expect. How can I fix this? Also, are there more complete docs for using XTest with XCB?<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Thanks in advance</div>