[MPlayer-cvslog] r31391 - trunk/gui/wm/ws.c

reimar subversion at mplayerhq.hu
Sun Jun 13 20:25:26 CEST 2010


Author: reimar
Date: Sun Jun 13 20:25:26 2010
New Revision: 31391

Log:
Move wsSearch function and make it static.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sun Jun 13 20:20:07 2010	(r31390)
+++ trunk/gui/wm/ws.c	Sun Jun 13 20:25:26 2010	(r31391)
@@ -108,7 +108,13 @@ unsigned long        wsKeyTable[512];
 int                  wsUseXShm = 1;
 int                  wsUseXShape = 1;
 
-int wsSearch( Window win );
+static int wsSearch( Window win )
+{
+ int i;
+ for ( i=0;i<wsWLCount;i++ ) if ( wsWindowList[i] && wsWindowList[i]->WindowID == win ) return i;
+ return -1;
+}
+
 
 // ---
 
@@ -547,13 +553,6 @@ void wsDestroyWindow( wsTWindow * win )
 //   Handle events.
 // ----------------------------------------------------------------------------------------------
 
-int wsSearch( Window win )
-{
- int i;
- for ( i=0;i<wsWLCount;i++ ) if ( wsWindowList[i] && wsWindowList[i]->WindowID == win ) return i;
- return -1;
-}
-
 Bool wsEvents( Display * display,XEvent * Event,XPointer arg )
 {
  unsigned long i = 0;


More information about the MPlayer-cvslog mailing list