changeset 12112:8520e39f92d6

move window decor changes after setting Withdrawn state so we have no additionalwindow refresh (by Adam Tla/lka)
author rathann
date Sat, 03 Apr 2004 13:46:00 +0000
parents 8e31aacc3e81
children 07d9c8fa6897
files libvo/x11_common.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Sat Apr 03 13:41:23 2004 +0000
+++ b/libvo/x11_common.c	Sat Apr 03 13:46:00 2004 +0000
@@ -1081,15 +1081,16 @@
 	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);