changeset 31325:e45b8fb721fd

Move wsSearch function and make it static.
author reimar
date Sun, 13 Jun 2010 18:25:26 +0000
parents 7fba3e0df3cb
children 2aaeaee2dd5a
files gui/wm/ws.c
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Sun Jun 13 18:20:07 2010 +0000
+++ b/gui/wm/ws.c	Sun Jun 13 18:25:26 2010 +0000
@@ -108,7 +108,13 @@
 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 @@
 //   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;