[MPlayer-users] Small 'move to top' bug

Aurelien JACOBS aurel at gnuage.org
Tue Aug 13 18:20:11 CEST 2002


I found a small bug in the GUI. When switching to fullscreen
the GUI appear on top of the video and we are able to switch
the GUI on top or on bottom using left mouse button. But the
GUI also switch on bottom automatically after the focus left
the GUI window, and after this you need TWO mouse click to
make it appear again...

Here is a small patch to correct this (I have not tested it
under KDE nor IceWM) :

--- sw.h.vanilla        Thu Jul 25 22:26:34 2002
+++ sw.h        Tue Aug 13 17:13:51 2002
@@ -2,14 +2,14 @@
 // sub window
 
 int             mplSubRender = 0;
-int             SubVisible = 0;
+int             SubVisible = 1;
 
 void mplSubDraw( wsParamDisplay )
 {
  if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player(
MSGTR_Exit_quit );
  
- if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++;
- if ( appMPlayer.subWindow.State == wsWindowFocusOut && wsWMType !=
wsWMKDE && wsWMType != wsWMIceWM ) SubVisible--;
+// if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++;
+ if ( appMPlayer.subWindow.State == wsWindowFocusOut && wsWMType !=
wsWMKDE && wsWMType != wsWMIceWM ) SubVisible++%2;
 
  if ( !appMPlayer.subWindow.Mapped ||
       appMPlayer.subWindow.Visible == wsWindowNotVisible ) return;




More information about the MPlayer-users mailing list