mirror of https://github.com/mpv-player/mpv
mwm fullscreen bug fixed (?)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2031 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bc2edd4346
commit
a47ac752e5
|
@ -7,7 +7,6 @@ int SubVisible = 0;
|
||||||
void mplSubDraw( wsParamDisplay )
|
void mplSubDraw( wsParamDisplay )
|
||||||
{
|
{
|
||||||
if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible=0;
|
if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible=0;
|
||||||
|
|
||||||
if ( !appMPlayer.subWindow.Mapped ||
|
if ( !appMPlayer.subWindow.Mapped ||
|
||||||
appMPlayer.subWindow.Visible == wsWindowNotVisible ) return;
|
appMPlayer.subWindow.Visible == wsWindowNotVisible ) return;
|
||||||
|
|
||||||
|
@ -62,7 +61,12 @@ void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY )
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case wsRLMouseButton:
|
case wsRLMouseButton:
|
||||||
if ( ( !mplSubMoved )&&( ( SubVisible++%2 ) ) ) wsMoveTopWindow( &appMPlayer.mainWindow );
|
// if ( ( !mplSubMoved )&&( ( SubVisible++%2 ) ) ) wsMoveTopWindow( &appMPlayer.mainWindow );
|
||||||
|
if ( !mplSubMoved )
|
||||||
|
{
|
||||||
|
if( SubVisible++%2 ) wsMoveTopWindow( &appMPlayer.subWindow );
|
||||||
|
else wsMoveTopWindow( &appMPlayer.mainWindow );
|
||||||
|
}
|
||||||
msButton=0;
|
msButton=0;
|
||||||
mplSubMoved=0;
|
mplSubMoved=0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -856,8 +856,8 @@ void wsIconify( wsTWindow win )
|
||||||
// Move top the window.
|
// Move top the window.
|
||||||
// ----------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------
|
||||||
void wsMoveTopWindow( wsTWindow * win )
|
void wsMoveTopWindow( wsTWindow * win )
|
||||||
//{ XRaiseWindow( wsDisplay,win->WindowID ); }
|
{ XRaiseWindow( wsDisplay,win->WindowID ); }
|
||||||
{ XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID ); }
|
//{ XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID ); }
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------
|
||||||
// Set window background to 'color'.
|
// Set window background to 'color'.
|
||||||
|
|
Loading…
Reference in New Issue