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

Function xcb_destroy_subwindows_checked

server/faker-xcb.cpp:220–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219
220xcb_void_cookie_t xcb_destroy_subwindows_checked(xcb_connection_t *conn,
221 xcb_window_t window)
222{
223 xcb_void_cookie_t cookie = { 0 };
224
225 TRY();
226
227 Display *dpy = XCBCONNHASH.getX11Display(conn);
228
229 if(!fconfig.fakeXCB || IS_EXCLUDED(dpy))
230 return _xcb_destroy_subwindows_checked(conn, window);
231
232 /////////////////////////////////////////////////////////////////////////////
233 OPENTRACE(xcb_destroy_subwindows_checked); PRARGX(conn); PRARGX(window);
234 STARTTRACE();
235 /////////////////////////////////////////////////////////////////////////////
236
237 if(dpy && window) DeleteWindow(dpy, window, true);
238 cookie = _xcb_destroy_subwindows_checked(conn, window);
239
240 /////////////////////////////////////////////////////////////////////////////
241 STOPTRACE(); CLOSETRACE();
242 /////////////////////////////////////////////////////////////////////////////
243
244 CATCH();
245
246 return cookie;
247}
248
249
250xcb_void_cookie_t xcb_destroy_window(xcb_connection_t *conn,

Callers 1

subWinTestFunction · 0.85

Calls 2

DeleteWindowFunction · 0.70
getX11DisplayMethod · 0.45

Tested by

no test coverage detected