From f03d1227321013554b1b1141c5300c4cc3faae7f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 7 Mar 2008 17:40:37 +0000 Subject: [PATCH] show window before determining X-Window-ID as newer WINE-versions do not create X-windows before actually showing window git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@774 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 8 ++++++++ plugins/vestige/vestige.cpp | 2 +- plugins/vestige/vestige.h | 2 +- plugins/vst_base/lvsl_server.cpp | 4 +++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f6c2be701..fd6282dd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-03-07 Tobias Doerffel + * plugins/vst_base/lvsl_server.cpp: + show window before determining X-Window-ID as newer WINE-versions do + not create X-windows before actually showing window + + * plugins/vst_base/lvsl_client.cpp: + * plugins/vst_base/lvsl_client.h: + properly insert VST-editor-window into QMdiArea + * plugins/vestige/vestige.cpp: * plugins/vestige/vestige.h: M/V-split diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 52ebe0225..56e61cf57 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -1,7 +1,7 @@ /* * vestige.cpp - instrument-plugin for hosting VST-plugins * - * Copyright (c) 2005-2007 Tobias Doerffel + * Copyright (c) 2005-2008 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * diff --git a/plugins/vestige/vestige.h b/plugins/vestige/vestige.h index 03635562b..27acd5ece 100644 --- a/plugins/vestige/vestige.h +++ b/plugins/vestige/vestige.h @@ -1,7 +1,7 @@ /* * vestige.h - instrument VeSTige for hosting VST-plugins * - * Copyright (c) 2005-2007 Tobias Doerffel + * Copyright (c) 2005-2008 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * 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" );