<H1>Issue</H1>
When a tk window is started by the sequence "wm wtihdraw .;wm state . iconic", the command "wm state ." will return "withdrawn" and not "iconic".

<H1>Environment</H1>

  *  Linux CentOS 6.5 64 bit
  *  WM: Gnome
  *  Tk 8.5.7, 8.6.0, 8.6.1

<H1>Demonstration</H1>

Having a file "wmt.tcl" like:
<verbatim>
package require Tk
proc showstate {} {
    puts [wm state .]
    after 1000 showstate
}
wm withdraw .
wm state . iconic
after 1000 showstate
</verbatim>

And starting by:
<verbatim>
wish wmt.tcl
</verbatim>

The printed result of "wm state ." is constantly "withdrawn".

Even if the window state is changed by the user by deiconifying the window, it still shows "withdrawn". Only an explicit command "wm state . normal" will change the returned state.