From e4c3e3c10a5f3b18b9de90a68073441fd765e2dd Mon Sep 17 00:00:00 2001 From: pontscho Date: Sun, 18 Nov 2001 15:05:25 +0000 Subject: fix blackbox xshape bug git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2971 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/mplayer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Gui/mplayer/mplayer.c') diff --git a/Gui/mplayer/mplayer.c b/Gui/mplayer/mplayer.c index 2c7904f067..134fa8851b 100644 --- a/Gui/mplayer/mplayer.c +++ b/Gui/mplayer/mplayer.c @@ -18,6 +18,7 @@ #include "../../config.h" #include "../../help_mp.h" #include "../../libvo/x11_common.h" +#include "../../libmpdemux/stream.h" #define mplMouseTimerConst 10 #define mplRedrawTimerConst 5 @@ -78,14 +79,15 @@ void mplInit( int argc,char* argv[], char *envp[], void* disp ) vo_setwindow(appMPlayer.subWindow.WindowID, appMPlayer.subWindow.wGC); vo_setwindowsize( appMPlayer.sub.width,appMPlayer.sub.height ); - i=wsHideFrame|wsMaxSize|wsShowWindow; - if ( appMPlayer.mainDecoration ) i=wsShowFrame|wsMaxSize|wsShowWindow; + i=wsHideFrame|wsMaxSize|wsHideWindow; + if ( appMPlayer.mainDecoration ) i=wsShowFrame|wsMaxSize|wsHideWindow; wsCreateWindow( &appMPlayer.mainWindow, appMPlayer.main.x,appMPlayer.main.y,appMPlayer.main.width,appMPlayer.main.height, wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,i,"MPlayer" ); //wsMinSize| wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image ); - + wsVisibleWindow( &appMPlayer.mainWindow,wsShowWindow ); + mplMenuInit(); #ifdef DEBUG -- cgit v1.2.3