| 136 | |
| 137 | |
| 138 | xcb_void_cookie_t xcb_create_window_checked(xcb_connection_t *conn, |
| 139 | uint8_t depth, xcb_window_t wid, xcb_window_t parent, int16_t x, int16_t y, |
| 140 | uint16_t width, uint16_t height, uint16_t border_width, uint16_t _class, |
| 141 | xcb_visualid_t visual, uint32_t value_mask, const void *value_list) |
| 142 | { |
| 143 | xcb_void_cookie_t cookie = { 0 }; |
| 144 | |
| 145 | TRY(); |
| 146 | |
| 147 | if(!fconfig.fakeXCB || IS_EXCLUDED(XCBCONNHASH.getX11Display(conn))) |
| 148 | return _xcb_create_window_checked(conn, depth, wid, parent, x, y, width, |
| 149 | height, border_width, _class, visual, value_mask, value_list); |
| 150 | |
| 151 | ///////////////////////////////////////////////////////////////////////////// |
| 152 | OPENTRACE(xcb_create_window_checked); PRARGX(conn); PRARGI(depth); |
| 153 | PRARGX(wid); PRARGX(parent); PRARGI(x); PRARGI(y); PRARGI(width); |
| 154 | PRARGI(height); PRARGI(border_width); PRARGI(_class); PRARGX(visual); |
| 155 | PRARGX(value_mask); STARTTRACE(); |
| 156 | ///////////////////////////////////////////////////////////////////////////// |
| 157 | |
| 158 | cookie = _xcb_create_window_checked(conn, depth, wid, parent, x, y, width, |
| 159 | height, border_width, _class, visual, value_mask, value_list); |
| 160 | if(cookie.sequence) WINHASH.add(XCBCONNHASH.getX11Display(conn), wid); |
| 161 | |
| 162 | ///////////////////////////////////////////////////////////////////////////// |
| 163 | STOPTRACE(); CLOSETRACE(); |
| 164 | ///////////////////////////////////////////////////////////////////////////// |
| 165 | |
| 166 | CATCH(); |
| 167 | |
| 168 | return cookie; |
| 169 | } |
| 170 | |
| 171 | |
| 172 | // When a window is destroyed, we shut down the corresponding VirtualWin |
no test coverage detected