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

Function DeleteWindow

server/faker-xcb.cpp:176–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174// instances attached to subwindows are also shut down.
175
176static void DeleteWindow(Display *dpy, Window win, bool subOnly = false)
177{
178 Window root, parent, *children = NULL; unsigned int n = 0;
179
180 if(!subOnly) WINHASH.remove(dpy, win);
181 if(XQueryTree(dpy, win, &root, &parent, &children, &n)
182 && children && n > 0)
183 {
184 for(unsigned int i = 0; i < n; i++) DeleteWindow(dpy, children[i]);
185 _XFree(children);
186 }
187}
188
189
190xcb_void_cookie_t xcb_destroy_subwindows(xcb_connection_t *conn,

Callers 4

xcb_destroy_subwindowsFunction · 0.70
xcb_destroy_windowFunction · 0.70

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected