made VST-GUI work with recent WINE-versions where no X-windows are being created until a ShowWindow()-request is issued and thus we get a XID for embedding GUI

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.3@786 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-03-09 15:54:05 +00:00
parent 4037f98441
commit c536dcdf9d

View File

@@ -1,7 +1,7 @@
/*
* lvsl_server.cpp - LMMS VST Support Layer Server
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -1081,6 +1081,8 @@ DWORD WINAPI VSTPlugin::guiEventLoop( LPVOID _param )
pthread_cond_signal( &_this->m_windowStatusChange );
return( 1 );
}
ShowWindow( _this->m_window, SW_SHOWMINIMIZED );
ShowWindow( _this->m_window, SW_HIDE );
_this->m_windowXID = (Sint32) GetPropA( _this->m_window,
"__wine_x11_whole_window" );