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

Function DeleteWindow

server/faker-x11.cpp:264–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262// instances attached to subwindows are also shut down.
263
264static void DeleteWindow(Display *dpy, Window win, bool subOnly = false)
265{
266 Window root, parent, *children = NULL; unsigned int n = 0;
267
268 if(!subOnly) WINHASH.remove(dpy, win);
269 if(XQueryTree(dpy, win, &root, &parent, &children, &n)
270 && children && n > 0)
271 {
272 for(unsigned int i = 0; i < n; i++) DeleteWindow(dpy, children[i]);
273 _XFree(children);
274 }
275}
276
277
278int XDestroySubwindows(Display *dpy, Window win)

Callers 2

XDestroySubwindowsFunction · 0.70
XDestroyWindowFunction · 0.70

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected