Mapped/Unmapped and Iconic State not consistent
Origin bug report from https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1827738
Excerpt from https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html:
Only the client can effect a transition into or out of the Withdrawn state. Once a client's window has left the Withdrawn state, the window will be mapped if it is in the Normal state and the window will be unmapped if it is in the Iconic state.
When I use xwininfo
or xprop
the mapped state of a window in iconic state is till IsViewable
. Here is the array from xwininfo.c:
static const binding _map_states[] = {
{ XCB_MAP_STATE_UNMAPPED, "IsUnMapped" },
{ XCB_MAP_STATE_UNVIEWABLE, "IsUnviewable" },
{ XCB_MAP_STATE_VIEWABLE, "IsViewable" },
{ 0, NULL } };
So following the documentation X11R7.6 the return value should be IsUnMapped
instead.
The iconic state however can be queried using the "Window manager hints" xwininfo -wm
.
Note that I am on Ubuntu 18.04.2 LTS.
Nevertheless the discrepancy in the documentation seems to lead in a confusion in implementation requirements, at least at the Tk people: https://groups.google.com/forum/#!topic/comp.lang.tcl/r7tm-swRWpE
With Tk it is currently impossible to get the iconic state since it is using the mapped state.
Please help and provide clarification, possibly point to documentation that clearly explains the intended behaviour.
Best Regards