xterm -iconic does not showing in IconicState
Affected version
Arch Linux, Mutter 41.1, Wayland session.
Bug summary
xterm has an -iconic
option that starts in IconicState, but in GNOME this option has no effect, it still starts in normal window.
I tried to read some mutter's log and code, mutter successfully get IconicState for the new client and set initially_iconic = TRUE
, however when mutter showing the window, it prints WINDOW_STATE: Showing window 0x360001e, shaded: 0 iconic: 0 placed: 0
, so I think the initially_iconic
is set but ignored when show window.
Also you can check the animation, when adding -iconic
the window flies from top left corner to desktop, looks like it was firstly minimized then shown.
Steps to reproduce
- Run
xterm -iconic
.
What happened
xterm window still shows on desktop.
What did you expect to happen
xterm should be minimized.