summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-05 21:35:30 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-05 21:35:30 +0000
commit316083485f6720f1c1496cdf03012e5864c61b7f (patch)
tree99c85a8c8276e442ce319b6578b5ec5d4a1e9e40 /libvo
parentcd74679ec698242b8356cf89e2030cb060be286c (diff)
downloadmpv-316083485f6720f1c1496cdf03012e5864c61b7f.tar.bz2
mpv-316083485f6720f1c1496cdf03012e5864c61b7f.tar.xz
full screen flipping synchronization corrections (by Adam Tla/lka)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12126 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 975d2c53e9..c667bf7b8f 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -78,6 +78,7 @@ int WinID=-1;
int vo_mouse_autohide = 0;
int vo_wm_type = 0;
static int vo_fs_type = 0;
+static int vo_fs_flip = 0;
char** vo_fstype_list;
/* if equal to 1 means that WM is a metacity (broken as hell) */
@@ -814,6 +815,7 @@ int vo_x11_check_events(Display *mydisplay){
case MapNotify:
vo_hint.win_gravity = old_gravity;
XSetWMNormalHints( mDisplay,vo_window,&vo_hint );
+ vo_fs_flip = 0;
break;
}
}
@@ -1056,7 +1058,7 @@ void vo_x11_fullscreen( void )
{
int x,y,w,h;
- if ( WinID >= 0 ) return;
+ if ( WinID >= 0 || vo_fs_flip) return;
if ( vo_fs ){
// fs->win
@@ -1084,6 +1086,7 @@ void vo_x11_fullscreen( void )
if(vo_wm_type==0 && !(vo_fsmode&16)) {
XUnmapWindow( mDisplay,vo_window ); // required for MWM
XWithdrawWindow(mDisplay,vo_window,mScreen);
+ vo_fs_flip = 1;
}
vo_x11_decoration( mDisplay,vo_window,(vo_fs) ? 0 : 1 );