# HG changeset patch # User ib # Date 1314904087 0 # Node ID b4593947fc31c6e5afc1a3b3622f79db3ce82593 # Parent 349e1fc4b6f257e6ec1c48fa1b91f43800dd6d72 Set WinID early and once. Set WinID once in guiInit(), not each time MPlayer calls gui(GUI_SETUP_VIDEO_WINDOW, 0). diff -r 349e1fc4b6f2 -r b4593947fc31 gui/interface.c --- a/gui/interface.c Thu Sep 01 18:52:09 2011 +0000 +++ b/gui/interface.c Thu Sep 01 19:08:07 2011 +0000 @@ -164,6 +164,8 @@ wsCreateImage(&guiApp.subWindow, guiApp.sub.Bitmap.Width, guiApp.sub.Bitmap.Height); wsXDNDMakeAwareness(&guiApp.subWindow); + WinID = guiApp.subWindow.WindowID; + uiMenuInit(); uiPlaybarInit(); @@ -769,7 +771,6 @@ if (guiWinID >= 0) wsMoveWindow(&guiApp.mainWindow, False, 0, vo_dheight); - WinID = guiApp.subWindow.WindowID; break; case GUI_HANDLE_X_EVENT: