[MPlayer-cvslog] r34046 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Thu Sep 1 21:08:07 CEST 2011
Author: ib
Date: Thu Sep 1 21:08:07 2011
New Revision: 34046
Log:
Set WinID early and once.
Set WinID once in guiInit(), not each time
MPlayer calls gui(GUI_SETUP_VIDEO_WINDOW, 0).
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Thu Sep 1 20:52:09 2011 (r34045)
+++ trunk/gui/interface.c Thu Sep 1 21:08:07 2011 (r34046)
@@ -164,6 +164,8 @@ void guiInit(void)
wsCreateImage(&guiApp.subWindow, guiApp.sub.Bitmap.Width, guiApp.sub.Bitmap.Height);
wsXDNDMakeAwareness(&guiApp.subWindow);
+ WinID = guiApp.subWindow.WindowID;
+
uiMenuInit();
uiPlaybarInit();
@@ -769,7 +771,6 @@ int gui(int what, void *data)
if (guiWinID >= 0)
wsMoveWindow(&guiApp.mainWindow, False, 0, vo_dheight);
- WinID = guiApp.subWindow.WindowID;
break;
case GUI_HANDLE_X_EVENT:
More information about the MPlayer-cvslog
mailing list