changeset 35498:c505a4aa9582

Rename wsNone wsNo and use it instead of a numeric constant.
author ib
date Tue, 04 Dec 2012 19:10:44 +0000
parents ff7cf8f1bd19
children af72f85b6f44
files gui/wm/ws.c gui/wm/ws.h
diffstat 2 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Tue Dec 04 18:55:24 2012 +0000
+++ b/gui/wm/ws.c	Tue Dec 04 19:10:44 2012 +0000
@@ -573,10 +573,10 @@
                          GCForeground | GCBackground,
                          &win->wGCV);
 
-    win->Visible = 0;
-    win->Focused = 0;
-    win->Mapped  = 0;
-    win->Rolled  = 0;
+    win->Visible = wsNo;
+    win->Focused = wsNo;
+    win->Mapped  = wsNo;
+    win->Rolled  = wsNo;
 
     if (D & wsShowWindow)
         XMapWindow(wsDisplay, win->WindowID);
@@ -634,10 +634,10 @@
     win->Idle         = NULL;
     win->MouseHandler = NULL;
     win->KeyHandler   = NULL;
-    win->Visible      = 0;
-    win->Focused      = 0;
-    win->Mapped       = 0;
-    win->Rolled       = 0;
+    win->Visible      = wsNo;
+    win->Focused      = wsNo;
+    win->Mapped       = wsNo;
+    win->Rolled       = wsNo;
 #endif
 }
 
@@ -702,7 +702,7 @@
 
     case UnmapNotify:
         i = wsWindowUnmapped;
-        wsWindowList[l]->Mapped = wsNone;
+        wsWindowList[l]->Mapped = wsNo;
         goto expose;
 
     case FocusIn:
@@ -716,11 +716,11 @@
 
     case FocusOut:
 
-        if (wsWindowList[l]->Focused == wsNone)
+        if (wsWindowList[l]->Focused == wsNo)
             break;
 
         i = wsWindowFocusOut;
-        wsWindowList[l]->Focused = wsNone;
+        wsWindowList[l]->Focused = wsNo;
         goto expose;
 
     case VisibilityNotify:
@@ -771,7 +771,7 @@
                 wsWindowList[l]->ReSize(wsWindowList[l]->X, wsWindowList[l]->Y, wsWindowList[l]->Width, wsWindowList[l]->Height);
         }
 
-        wsWindowList[l]->Rolled = wsNone;
+        wsWindowList[l]->Rolled = wsNo;
 
         if (Event->xconfigure.y < 0) {
             i = wsWindowRolled;
--- a/gui/wm/ws.h	Tue Dec 04 18:55:24 2012 +0000
+++ b/gui/wm/ws.h	Tue Dec 04 19:10:44 2012 +0000
@@ -96,7 +96,7 @@
 #define wsWindowRolled         256
 #define wsWindowClosed         512
 
-#define wsNone       0
+#define wsNo         0
 #define wsMapped     1
 #define wsFocused    2
 #define wsVisible    3