I encountered this bug:
a (re) MapWindow-ed emacs frame (for example on returning to a workplace) contains the previous content, before being (immediately) redrawn.
But ICCM does not talk about any other state which the WM can set!
we talk about src/xterm.c:
f->async_iconified=1
Before searching for a way to detect properly
that I don't iconify (and avoid this async_iconified=1), I would like to understand the comment in the case MapNotify: why " If we were iconified ...we should not set garbaged" ? What is the difference between simple reMapping and deiconifying?
CVS Emacs tries to be smarter than Sawfish: it warns about the only mapped frame, when it is the only frame in a Sawfish's "workplace". This is because sawfish does not "iconify" the window, but simply unmaps, and I had to remove code from emacs which equates "iconified" = "unmapped". I had to remove it, b/c emacs does not set frame_garbagged when an iconified window is uniconified, so