# HG changeset patch # User ib # Date 1358437463 0 # Node ID e7bd98b3ad6cf31f0759fec1b815be9fd9d7df42 # Parent ae1d6da2c9eaf1dda1e2105065f652f5883c319f Remove pointless variable wsTrue. As a result, wsEvents() becomes a function with void result type. diff -r ae1d6da2c9ea -r e7bd98b3ad6c gui/wm/ws.c --- 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) diff -r ae1d6da2c9ea -r e7bd98b3ad6c gui/wm/ws.h --- 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);