Chris Robinson chris.kcat@gmail.com writes:
The desktop/root_window doesn't have a client window. All attempts to give it one were met with limitted success.
You don't have to create a separate client window for the desktop, you can use the same window id for both.
The client window, being a child of the whole window, should be destroyed automagically with the whole window. Though the client_window ID does at least need to be set to 0, I suppose.
Yes, the X window is destroyed automatically, but the data structures need to reflect that fact.