From c536dcdf9dd5aff9a6216532324fd8dc0d90cf2c Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 9 Mar 2008 15:54:05 +0000 Subject: [PATCH] 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 --- plugins/vst_base/lvsl_server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/vst_base/lvsl_server.cpp b/plugins/vst_base/lvsl_server.cpp index f8be5feeb..ac5374d0f 100644 --- a/plugins/vst_base/lvsl_server.cpp +++ b/plugins/vst_base/lvsl_server.cpp @@ -1,7 +1,7 @@ /* * lvsl_server.cpp - LMMS VST Support Layer Server * - * Copyright (c) 2005-2007 Tobias Doerffel + * Copyright (c) 2005-2008 Tobias Doerffel * * 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" );