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

Function xcb_destroy_window

server/faker-xcb.cpp:250–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250xcb_void_cookie_t xcb_destroy_window(xcb_connection_t *conn,
251 xcb_window_t window)
252{
253 xcb_void_cookie_t cookie = { 0 };
254
255 TRY();
256
257 Display *dpy = XCBCONNHASH.getX11Display(conn);
258
259 if(!fconfig.fakeXCB || IS_EXCLUDED(dpy))
260 return _xcb_destroy_window(conn, window);
261
262 /////////////////////////////////////////////////////////////////////////////
263 OPENTRACE(xcb_destroy_window); PRARGX(conn); PRARGX(window); STARTTRACE();
264 /////////////////////////////////////////////////////////////////////////////
265
266 if(dpy && window) DeleteWindow(dpy, window);
267 cookie = _xcb_destroy_window(conn, window);
268
269 /////////////////////////////////////////////////////////////////////////////
270 STOPTRACE(); CLOSETRACE();
271 /////////////////////////////////////////////////////////////////////////////
272
273 CATCH();
274
275 return cookie;
276}
277
278
279xcb_void_cookie_t xcb_destroy_window_checked(xcb_connection_t *conn,

Callers 1

subWinTestFunction · 0.85

Calls 2

DeleteWindowFunction · 0.70
getX11DisplayMethod · 0.45

Tested by

no test coverage detected