Modal dialog don't goes to iconified state , when the parent is iconified.
Step to Reproduce:
-------------------
1) Run the attached program. You can see a frame on the screen & a TrayIcon is added to the Taskbar (systemtray) , an animated dog.
2) Right click on the TrayIcon. You can see popupmenu.
3) Select 'Iconify' menuitem. You can see that frame is iconified.
4) Repeat step (2).
5) Select 'Normal' menuitem. You can see that frame is restored to normal state.
6) Repeat step (2).
7) Select 'Dialog' menuitem. You can see a Modal dialog on the screen. Try clicking on the parent , the dialog flicker which indicates that the frame is blocked.
8) Repeat step (2).
9) Select 'Iconify' menuitem. Observe that Franme (Parent ) gets iconified, but Modal dialog does n't . If you see the same , then the bug is reproduced.
I tested this from Mustang b40 to Mustang b87.