changeset 33958:b4593947fc31

Set WinID early and once. Set WinID once in guiInit(), not each time MPlayer calls gui(GUI_SETUP_VIDEO_WINDOW, 0).
author ib
date Thu, 01 Sep 2011 19:08:07 +0000
parents 349e1fc4b6f2
children ef089a8affc6
files gui/interface.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: