Wen resuming from tray, MP sends a "Goto previous window" command which must be a bug.
2010-06-08 12:38:35.624646 [Info.][MPMain(1)]: D3D: Minimizing to tray on GUI exit
2010-06-08 12:38:35.652647 [Debug][MPMain(1)]: VMR9: SetRepaint()
2010-06-08 12:38:35.661648 [Debug][MPMain(1)]: ACTION_TOGGLE_AUTOCROP
2010-06-08 12:38:41.217966 [Info.][MPMain(1)]: D3D: Restoring from tray
2010-06-08 12:38:41.238967 [Info.][MPMain(1)]: Main: OnSizeChanged - Resetting device
2010-06-08 12:38:41.241967 [Debug][MPMain(1)]: D3D: Switch to exclusive mode - Playing media: True
2010-06-08 12:38:41.242967 [Debug][MPMain(1)]: GUIFont:texture disposing:0 debug
2010-06-08 12:38:41.244967 [Debug][MPMain(1)]: GUIFont:texture disposing:1 font10
2010-06-08 12:38:41.244967 [Debug][MPMain(1)]: GUIFont:texture disposing:2 font11
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:3 font12
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:4 font13
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:5 font14
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:6 font15
2010-06-08 12:38:41.246967 [Debug][MPMain(1)]: GUIFont:texture disposing:7 font16
2010-06-08 12:38:41.247967 [Debug][MPMain(1)]: GUIFont:texture disposing:8 font17
2010-06-08 12:38:41.247967 [Debug][MPMain(1)]: GUIFont:texture disposing:9 font18
2010-06-08 12:38:41.248967 [Info.][MPMain(1)]: TexturePacker: disposing texture:1999
2010-06-08 12:38:41.297970 [Info.][(12)]: planesceneresentImage() frame:0 enabled:True allowed:False
2010-06-08 12:38:41.311971 [Info.][(12)]: planesceneresentImage() frame:1 enabled:True allowed:False
2010-06-08 12:38:41.330972 [Info.][(12)]: planesceneresentImage() frame:2 enabled:True allowed:False
2010-06-08 12:38:41.350973 [Info.][(12)]: planesceneresentImage() frame:3 enabled:True allowed:False
2010-06-08 12:38:41.370974 [Info.][(12)]: planesceneresentImage() frame:4 enabled:True allowed:False
2010-06-08 12:38:41.389975 [Info.][MPMain(1)]: TexturePacker: disposing texture:1998
2010-06-08 12:38:41.390975 [Info.][MPMain(1)]: TexturePacker: disposing texture:1997
2010-06-08 12:38:41.392976 [Info.][MPMain(1)]: TexturePacker: disposing texture:1996
2010-06-08 12:38:41.392976 [Info.][(12)]: planesceneresentImage() frame:5 enabled:True allowed:False
2010-06-08 12:38:41.401976 [Debug][MPMain(1)]: D3D: Switched to windowed mode successfully
2010-06-08 12:38:41.402976 [Info.][MPMain(1)]: Main: OnDeviceReset called
2010-06-08 12:38:41.402976 [Info.][MPMain(1)]: Main: Resetting DX9 device
2010-06-08 12:38:41.405976 [Debug][MPMain(1)]: Windowmanager: Goto previous window
2010-06-08 12:38:35.624646 [Info.][MPMain(1)]: D3D: Minimizing to tray on GUI exit
2010-06-08 12:38:35.652647 [Debug][MPMain(1)]: VMR9: SetRepaint()
2010-06-08 12:38:35.661648 [Debug][MPMain(1)]: ACTION_TOGGLE_AUTOCROP
2010-06-08 12:38:41.217966 [Info.][MPMain(1)]: D3D: Restoring from tray
2010-06-08 12:38:41.238967 [Info.][MPMain(1)]: Main: OnSizeChanged - Resetting device
2010-06-08 12:38:41.241967 [Debug][MPMain(1)]: D3D: Switch to exclusive mode - Playing media: True
2010-06-08 12:38:41.242967 [Debug][MPMain(1)]: GUIFont:texture disposing:0 debug
2010-06-08 12:38:41.244967 [Debug][MPMain(1)]: GUIFont:texture disposing:1 font10
2010-06-08 12:38:41.244967 [Debug][MPMain(1)]: GUIFont:texture disposing:2 font11
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:3 font12
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:4 font13
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:5 font14
2010-06-08 12:38:41.245967 [Debug][MPMain(1)]: GUIFont:texture disposing:6 font15
2010-06-08 12:38:41.246967 [Debug][MPMain(1)]: GUIFont:texture disposing:7 font16
2010-06-08 12:38:41.247967 [Debug][MPMain(1)]: GUIFont:texture disposing:8 font17
2010-06-08 12:38:41.247967 [Debug][MPMain(1)]: GUIFont:texture disposing:9 font18
2010-06-08 12:38:41.248967 [Info.][MPMain(1)]: TexturePacker: disposing texture:1999
2010-06-08 12:38:41.297970 [Info.][(12)]: planesceneresentImage() frame:0 enabled:True allowed:False
2010-06-08 12:38:41.311971 [Info.][(12)]: planesceneresentImage() frame:1 enabled:True allowed:False
2010-06-08 12:38:41.330972 [Info.][(12)]: planesceneresentImage() frame:2 enabled:True allowed:False
2010-06-08 12:38:41.350973 [Info.][(12)]: planesceneresentImage() frame:3 enabled:True allowed:False
2010-06-08 12:38:41.370974 [Info.][(12)]: planesceneresentImage() frame:4 enabled:True allowed:False
2010-06-08 12:38:41.389975 [Info.][MPMain(1)]: TexturePacker: disposing texture:1998
2010-06-08 12:38:41.390975 [Info.][MPMain(1)]: TexturePacker: disposing texture:1997
2010-06-08 12:38:41.392976 [Info.][MPMain(1)]: TexturePacker: disposing texture:1996
2010-06-08 12:38:41.392976 [Info.][(12)]: planesceneresentImage() frame:5 enabled:True allowed:False
2010-06-08 12:38:41.401976 [Debug][MPMain(1)]: D3D: Switched to windowed mode successfully
2010-06-08 12:38:41.402976 [Info.][MPMain(1)]: Main: OnDeviceReset called
2010-06-08 12:38:41.402976 [Info.][MPMain(1)]: Main: Resetting DX9 device
2010-06-08 12:38:41.405976 [Debug][MPMain(1)]: Windowmanager: Goto previous window