MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / xcb_destroy_window_checked

Function xcb_destroy_window_checked

server/faker-xcb.cpp:279–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279xcb_void_cookie_t xcb_destroy_window_checked(xcb_connection_t *conn,
280 xcb_window_t window)
281{
282 xcb_void_cookie_t cookie = { 0 };
283
284 TRY();
285
286 Display *dpy = XCBCONNHASH.getX11Display(conn);
287
288 if(!fconfig.fakeXCB || IS_EXCLUDED(dpy))
289 return _xcb_destroy_window_checked(conn, window);
290
291 /////////////////////////////////////////////////////////////////////////////
292 OPENTRACE(xcb_destroy_window_checked); PRARGX(conn); PRARGX(window);
293 STARTTRACE();
294 /////////////////////////////////////////////////////////////////////////////
295
296 if(dpy && window) DeleteWindow(dpy, window);
297 cookie = _xcb_destroy_window_checked(conn, window);
298
299 /////////////////////////////////////////////////////////////////////////////
300 STOPTRACE(); CLOSETRACE();
301 /////////////////////////////////////////////////////////////////////////////
302
303 CATCH();
304
305 return cookie;
306}
307
308
309const xcb_query_extension_reply_t *

Callers 1

subWinTestFunction · 0.85

Calls 2

DeleteWindowFunction · 0.70
getX11DisplayMethod · 0.45

Tested by

no test coverage detected