State possibilities:
IsUnmapped - window is not displayed.
IsViewable - window is mapped and shown (though may be clipped by windows
on top of it)
IsUnviewable - window is mapped but a parent window is unmapped.
@param wid the window you want to wait for.
@param map_state the state to wait for.
Wait for a window to have a specific map state.
State possibilities: IsUnmapped - window is not displayed. IsViewable - window is mapped and shown (though may be clipped by windows on top of it) IsUnviewable - window is mapped but a parent window is unmapped.
@param wid the window you want to wait for. @param map_state the state to wait for.