What window manager are you using?

After [wm state . iconic], does the window actually reappear iconified (in the task bar, usually), or does the WM leave it withdrawn?

Cannot replicate on my desktop (Gnome 2.28, metacity).