[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.52,1.53
Zoltan Ponekker
pontscho at mplayerhq.hu
Tue Oct 1 16:37:04 CEST 2002
Update of /cvsroot/mplayer/main/Gui/wm
In directory mail:/var/tmp.root/cvs-serv3724/Gui/wm
Modified Files:
ws.c
Log Message:
_NET_WM_FULLSCREEN support
Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- ws.c 29 Sep 2002 09:39:25 -0000 1.52
+++ ws.c 1 Oct 2002 14:37:01 -0000 1.53
@@ -776,7 +776,7 @@
Atom type;
int format;
unsigned long nitems, bytesafter;
- unsigned char * args = NULL;
+ Atom * args = NULL;
if ( wsWMType == wsWMIceWM )
{
@@ -794,15 +794,21 @@
type=XInternAtom( wsDisplay,"_NET_SUPPORTED",False );
if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 )
{
+ int i;
XEvent e;
+
e.xclient.type=ClientMessage;
e.xclient.message_type=XInternAtom( wsDisplay,"_NET_WM_STATE",False );
e.xclient.display=wsDisplay;
e.xclient.window=win;
e.xclient.format=32;
e.xclient.data.l[0]=layer;
+
e.xclient.data.l[1]=XInternAtom( wsDisplay,"_NET_WM_STATE_STAYS_ON_TOP",False );
-// e.xclient.data.l[1]=XInternAtom( wsDisplay,"_NET_WM_STATE_FULLSCREEN",False );
+ type=XInternAtom( wsDisplay,"_NET_WM_STATE_FULLSCREEN",False );
+ for ( i=0;i < nitems;i++ )
+ if ( args[i] == type ) { e.xclient.data.l[1]=XInternAtom( wsDisplay,"_NET_WM_STATE_FULLSCREEN",False ); break; }
+
e.xclient.data.l[2]=0l;
e.xclient.data.l[3]=0l;
e.xclient.data.l[4]=0l;
More information about the MPlayer-cvslog
mailing list