changeset 35669:e7bd98b3ad6c

Remove pointless variable wsTrue. As a result, wsEvents() becomes a function with void result type.
author ib
date Thu, 17 Jan 2013 15:44:23 +0000
parents ae1d6da2c9ea
children 8ce9bc8aa443
files gui/wm/ws.c gui/wm/ws.h
diffstat 2 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Thu Jan 17 15:25:56 2013 +0000
+++ b/gui/wm/ws.c	Thu Jan 17 15:44:23 2013 +0000
@@ -94,8 +94,6 @@
 static int wsOutMask;
 static int wsNonNativeOrder;
 
-static Bool wsTrue = True;
-
 #define wsWLCount 5
 static wsWindow *wsWindowList[wsWLCount];
 
@@ -708,7 +706,7 @@
 //   Handle events.
 // ----------------------------------------------------------------------------------------------
 
-Bool wsEvents(XEvent *event)
+void wsEvents(XEvent *event)
 {
     unsigned long i = 0;
     int l;
@@ -718,7 +716,7 @@
     l = wsSearch(event->xany.window);
 
     if (l == -1)
-        return !wsTrue;
+        return;
 
     wsWindowList[l]->State = wsNone;
 
@@ -969,8 +967,6 @@
 
     XFlush(wsDisplay);
     XSync(wsDisplay, False);
-
-    return !wsTrue;
 }
 
 void wsHandleEvents(void)
--- a/gui/wm/ws.h	Thu Jan 17 15:25:56 2013 +0000
+++ b/gui/wm/ws.h	Thu Jan 17 15:44:23 2013 +0000
@@ -185,7 +185,7 @@
 int wsGetDepthOnScreen(void);
 
 void wsAutohideCursor(void);
-Bool wsEvents(XEvent *event);
+void wsEvents(XEvent *event);
 void wsHandleEvents(void);
 
 void wsCreateWindow(wsWindow *win, int x, int y, int w, int h, int b, int c, unsigned char p, char *label);