[MPlayer-users] full screen mode problem
Iban
hatchond at yahoo.fr
Sun Nov 11 19:38:14 CET 2001
> no, you posted first to the right list.
> pontscho - who is working on X stuff and Gui - couldn't implement it to
> working (AFAIK). so send patches please.
Hi,
I have a part of the solution : It seems to work with the __Gui__.
I download the latest ws.c file and made the diff with it. So you can apply it to your
latest cvs snap-shot.
I made a try on your 0.50 release, and it seems to works (at least with Gui).
I'am still searching for the rest (i.e. without Gui; should come soon).
Please try my paych (with gui) and give your verdict :).
Regards,
Iban.
-------------- next part --------------
diff -urN ws.c ws.c
--- ws.c Sun Nov 11 19:12:50 2001
+++ ws.c Sun Nov 11 19:17:06 2001
@@ -406,11 +406,12 @@
wsClassHint.res_class="MPlayer";
XSetClassHint( wsDisplay,win->WindowID,&wsClassHint );
- win->SizeHint.flags=PPosition | PSize | PResizeInc; // | PBaseSize
+ win->SizeHint.flags=PPosition | PSize | PResizeInc | PWinGravity; // | PBaseSize
win->SizeHint.x=win->X;
win->SizeHint.y=win->Y;
win->SizeHint.width=win->Width;
win->SizeHint.height=win->Height;
+ win->SizeHint.win_gravity=10; // Static gravity.
if ( D & wsMinSize )
{
win->SizeHint.flags|=PMinSize;
@@ -764,7 +765,7 @@
wsScreenSaverOff( wsDisplay );
}
- win->SizeHint.flags|=PPosition | PSize;
+ win->SizeHint.flags|=PPosition | PSize | PWinGravity;
win->SizeHint.x=win->X;
win->SizeHint.y=win->Y;
win->SizeHint.width=win->Width;
@@ -850,7 +851,7 @@
default: win->Y=y; break;
}
- win->SizeHint.flags=PPosition;
+ win->SizeHint.flags=PPosition | PWinGravity;
win->SizeHint.x=win->X;
win->SizeHint.y=win->Y;
XSetWMNormalHints( wsDisplay,win->WindowID,&win->SizeHint );
@@ -867,7 +868,7 @@
win->Width=sx;
win->Height=sy;
- win->SizeHint.flags=PSize;
+ win->SizeHint.flags=PSize | PWinGravity;
win->SizeHint.width=win->Width;
win->SizeHint.height=win->Height;
if ( win->Property & wsMinSize )
More information about the MPlayer-users
mailing list