[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.24,1.25
Arpi of Ize
arpi at mplayerhq.banki.hu
Wed Jul 4 01:23:57 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayerhq:/var/tmp.root/cvs-serv16196
Modified Files:
x11_common.c
Log Message:
switch fullscreen method with -fsmode
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- x11_common.c 27 Jun 2001 08:50:03 -0000 1.24
+++ x11_common.c 3 Jul 2001 23:23:55 -0000 1.25
@@ -182,8 +182,17 @@
static MotifWmHints vo_MotifWmHints;
static Atom vo_MotifHints = None;
+// Note: always d==0 !
void vo_x11_decoration( Display * vo_Display,Window w,int d )
{
+
+ if(vo_fsmode&1){
+ XSetWindowAttributes attr;
+ attr.override_redirect = True;
+ XChangeWindowAttributes(vo_Display, w, CWOverrideRedirect, &attr);
+// XMapWindow(vo_Display], w);
+ }
+
vo_MotifHints=XInternAtom( vo_Display,"_MOTIF_WM_HINTS",0 );
if ( vo_MotifHints != None )
{
@@ -191,9 +200,9 @@
vo_MotifWmHints.flags=MWM_HINTS_FUNCTIONS | MWM_HINTS_DECORATIONS;
vo_MotifWmHints.functions=MWM_FUNC_MOVE | MWM_FUNC_CLOSE | MWM_FUNC_MINIMIZE | MWM_FUNC_MAXIMIZE;
if ( d ) d=MWM_DECOR_ALL;
- vo_MotifWmHints.decorations=d | MWM_DECOR_MENU;
+ vo_MotifWmHints.decorations=d|((vo_fsmode&2)?0:MWM_DECOR_MENU);
XChangeProperty( vo_Display,w,vo_MotifHints,vo_MotifHints,32,
- PropModeReplace,(unsigned char *)&vo_MotifWmHints,5 );
+ PropModeReplace,(unsigned char *)&vo_MotifWmHints,(vo_fsmode&4)?4:5 );
}
}
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list