summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-03 13:46:00 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-03 13:46:00 +0000
commitb4387abe8f43eb9bb3645d6c5c2bfe446a69535d (patch)
tree32c834932934a61e6e2e4991b2bb4387d62979d2
parent3813c685162d9c054b57b9431ebebc2c107e623c (diff)
downloadmpv-b4387abe8f43eb9bb3645d6c5c2bfe446a69535d.tar.bz2
mpv-b4387abe8f43eb9bb3645d6c5c2bfe446a69535d.tar.xz
move window decor changes after setting Withdrawn state so we have no additionalwindow refresh
(by Adam Tla/lka) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12113 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/x11_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 112c08e89d..24152d6fbe 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1081,15 +1081,16 @@ void vo_x11_fullscreen( void )
else
old_gravity = vo_hint.win_gravity;
}
+ if(vo_wm_type==0 && !(vo_fsmode&16))
+// XUnmapWindow( mDisplay,vo_window ); // required for MWM
+ XWithdrawWindow(mDisplay,vo_window,mScreen);
+
vo_x11_decoration( mDisplay,vo_window,(vo_fs) ? 0 : 1 );
vo_x11_sizehint( x,y,w,h,0 );
vo_x11_setlayer( mDisplay,vo_window,vo_fs );
if ((!(vo_fs)) & vo_ontop) vo_x11_setlayer(mDisplay, vo_window,vo_ontop);
- if(vo_wm_type==0 && !(vo_fsmode&16))
-// XUnmapWindow( mDisplay,vo_window ); // required for MWM
- XWithdrawWindow(mDisplay,vo_window,mScreen);
XMoveResizeWindow( mDisplay,vo_window,x,y,w,h );
#ifdef HAVE_XINERAMA
vo_x11_xinerama_move(mDisplay,vo_window);