summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-26 08:34:17 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-26 08:34:17 +0000
commit01ab34d04af5aadb0be949a196d25142b6adb692 (patch)
tree3bb56e5df5339e3bd7321060d0ce67b9634d0fdd /Gui
parent50de5173456b29e7411150e34ce63d96e74ec47e (diff)
downloadmpv-01ab34d04af5aadb0be949a196d25142b6adb692.tar.bz2
mpv-01ab34d04af5aadb0be949a196d25142b6adb692.tar.xz
From: Michael Joosten <joost@c-lab.de>
PATCH: fullscreen issues with GUI, WM layers, gmplayer plays first file always twice git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10194 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/interface.c1
-rw-r--r--Gui/mplayer/play.c4
-rw-r--r--Gui/mplayer/play.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 63777a7684..2d8aa136e1 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -1145,6 +1145,7 @@ int import_initial_playtree_into_gui(play_tree_t* my_playtree, m_config_t* confi
}
mplCurr(); // Update filename
+ mplGotoTheNext=1;
if (!enqueue)
filename=guiIntfStruct.Filename; // Backward compatibility; if file is specified on commandline,
diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c
index 147674bba0..4977dbe183 100644
--- a/Gui/mplayer/play.c
+++ b/Gui/mplayer/play.c
@@ -32,7 +32,7 @@
extern float rel_seek_secs;
extern int abs_seek_pos;
-static int mplGotoTheNext = 1;
+int mplGotoTheNext = 1;
void mplFullScreen( void )
{
@@ -57,7 +57,7 @@ void mplFullScreen( void )
if ( guiIntfStruct.Playing || gtkShowVideoWindow ) wsFullScreen( &appMPlayer.subWindow );
fullscreen=vo_fs=appMPlayer.subWindow.isFullScreen;
wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen );
- wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
+ if ( appMPlayer.menuIsPresent ) wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B );
diff --git a/Gui/mplayer/play.h b/Gui/mplayer/play.h
index b7c3c58a3b..60317cd479 100644
--- a/Gui/mplayer/play.h
+++ b/Gui/mplayer/play.h
@@ -6,6 +6,8 @@
#include "./mplayer.h"
+extern int mplGotoTheNext;
+
extern void mplEnd( void );
extern void mplFullScreen( void );
extern void mplPlay( void );