changeset 35499:af72f85b6f44

Define symbolic constant wsNone for "no window state". Use it instead of a numeric constant.
author ib
date Tue, 04 Dec 2012 19:13:18 +0000
parents c505a4aa9582
children 6422042d74d9
files gui/wm/ws.c gui/wm/ws.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Tue Dec 04 19:10:44 2012 +0000
+++ b/gui/wm/ws.c	Tue Dec 04 19:13:18 2012 +0000
@@ -668,7 +668,7 @@
     if (l == -1)
         return !wsTrue;
 
-    wsWindowList[l]->State = 0;
+    wsWindowList[l]->State = wsNone;
 
     switch (Event->type) {
     case ClientMessage:
--- a/gui/wm/ws.h	Tue Dec 04 19:10:44 2012 +0000
+++ b/gui/wm/ws.h	Tue Dec 04 19:13:18 2012 +0000
@@ -85,6 +85,7 @@
 #define wsRGB15 7
 #define wsBGR15 8
 
+#define wsNone                   0
 #define wsWindowVisible          1
 #define wsWindowPartialVisible   2
 #define wsWindowNotVisible       4