Set the WM_STATE property appropriately as specified in the ICCCM, section 4.1.3. On mapping a window, the state should always be set to normal. If shading, minimizing, iconifying, or any similar mechanism is implemented, then upon any one of these occurring, the WM_STATE should be set to iconic. Windows should start out in the withdrawm state, and only change when mapped by the client. Windows may only re-enter the withdrawn state if the client requests the window to be unmapped.
Set the WM_STATE property appropriately as specified in the ICCCM, section 4.1.3. On mapping a window, the state should always be set to normal. If shading, minimizing, iconifying, or any similar mechanism is implemented, then upon any one of these occurring, the WM_STATE should be set to iconic. Windows should start out in the withdrawm state, and only change when mapped by the client. Windows may only re-enter the withdrawn state if the client requests the window to be unmapped.