[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.18,1.19

Zoltan Ponekker pontscho at mplayer.dev.hu
Tue Oct 2 17:01:59 CEST 2001


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

Modified Files:
	ws.c 
Log Message:
fix other bugs

Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ws.c	1 Oct 2001 13:09:04 -0000	1.18
+++ ws.c	2 Oct 2001 15:01:56 -0000	1.19
@@ -613,8 +613,10 @@
         break;
 
    case PropertyNotify:
-	break;
-        fprintf(stderr,"[ws] PropertyNotify %s\n",XGetAtomName( wsDisplay,Event->xproperty.atom ) );
+//	break;
+//	#ifdef DEBUG
+//         fprintf(stderr,"[ws] PropertyNotify ( 0x%x ) %s ( 0x%x )\n",wsWindowList[l]->WindowID,XGetAtomName( wsDisplay,Event->xproperty.atom ),Event->xproperty.atom );
+//	#endif
         if ( Event->xproperty.atom == wsWindowList[l]->AtomRemote )
          {
           Atom            type;
@@ -634,6 +636,9 @@
            {
             args[strlen( args ) - 1]=0;
             wsWindowList[l]->RemoteHandler( args );
+	    #ifdef DEBUG
+ 	     fprintf( stderr,"[ws]   args: '%s'\n",args );
+	    #endif
             args[strlen( args ) - 1]=1;
             XFree( args );
            }
@@ -856,8 +861,10 @@
 //    Move top the window.
 // ----------------------------------------------------------------------------------------------
 void wsMoveTopWindow( wsTWindow * win )
-{ XRaiseWindow( wsDisplay,win->WindowID ); }
-//{ XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID ); }
+{ 
+// XUnmapWindow( wsDisplay,win->WindowID ); XMapWindow( wsDisplay,win->WindowID ); 
+ XRaiseWindow( wsDisplay,win->WindowID ); 
+}
 
 // ----------------------------------------------------------------------------------------------
 //    Set window background to 'color'.
@@ -897,7 +904,6 @@
    case wsBGR15: PACK_RGB15( b,g,r,color ); break;
   }
  XSetForeground( wsDisplay,win->wGC,color );
-// XSetWindowBackground( wsDisplay,win->WindowID,color );
 }
 
 // ----------------------------------------------------------------------------------------------




More information about the MPlayer-cvslog mailing list