[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.35,1.36

Zoltan Ponekker pontscho at mplayerhq.hu
Sun May 5 20:46:45 CEST 2002


Update of /cvsroot/mplayer/main/Gui/wm
In directory mail:/var/tmp.root/cvs-serv26860/Gui/wm

Modified Files:
	ws.c 
Log Message:
window resize bug fixed

Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- ws.c	1 May 2002 09:29:04 -0000	1.35
+++ ws.c	5 May 2002 18:46:42 -0000	1.36
@@ -361,6 +361,7 @@
  win->SizeHint.y=win->Y;
  win->SizeHint.width=win->Width;
  win->SizeHint.height=win->Height;
+
  if ( D & wsMinSize )
   {
    win->SizeHint.flags|=PMinSize;
@@ -373,6 +374,7 @@
    win->SizeHint.max_width=win->Width;
    win->SizeHint.max_height=win->Height;
   }
+
  win->SizeHint.height_inc=1;
  win->SizeHint.width_inc=1;
  win->SizeHint.base_width=win->Width;
@@ -770,9 +772,12 @@
  win->Width=sx;
  win->Height=sy;
 
- win->SizeHint.flags=PSize | PWinGravity;
+ win->SizeHint.flags=PPosition | PSize | PWinGravity | PBaseSize;
+ win->SizeHint.x=win->X;
+ win->SizeHint.y=win->Y;
  win->SizeHint.width=win->Width;
  win->SizeHint.height=win->Height;
+/*
  if ( win->Property & wsMinSize )
   {
    win->SizeHint.flags|=PMinSize;
@@ -785,9 +790,13 @@
    win->SizeHint.max_width=win->Width;
    win->SizeHint.max_height=win->Height;
   }
+*/
  win->SizeHint.win_gravity=StaticGravity;
+ win->SizeHint.base_width=sx; win->SizeHint.base_height=sy;
+ if ( !wsIsKDE ) XUnmapWindow( wsDisplay,win->WindowID );
  XSetWMNormalHints( wsDisplay,win->WindowID,&win->SizeHint );
  XResizeWindow( wsDisplay,win->WindowID,sx,sy );
+ XMapRaised( wsDisplay,win->WindowID );
  if ( win->ReSize ) win->ReSize( win->X,win->Y,win->Width,win->Height );
 }
 




More information about the MPlayer-cvslog mailing list