My X11 client/server are set up to use a backing store (backing_store = WhenMapped), which works fine when my window is partially obscured: remove what's obscuring the window and the now-visible part is refreshed from the backing store with no need for me to repaint...
...but it's not working when the window is unmapped then mapped again: I get UnmapNotify then MapNotify events, but my window is blank when mapped and I have to repaint the whole thing myself.
So my question: How do I get the backing store to work for Unmap/Map as well as Expose? (backing_store = Always) made no difference.
System: Ubuntu 16.04, X.Org X Server 1.19.3
Thank you
XSetWindowBackgroundPixmap()
. – meuh Aug 26 '18 at 17:59