# HG changeset patch # User ib # Date 1354648244 0 # Node ID c505a4aa9582a1f5ad67c93cd87382a8e0549e12 # Parent ff7cf8f1bd199daa56f1ebb40126eafa65a1fa22 Rename wsNone wsNo and use it instead of a numeric constant. diff -r ff7cf8f1bd19 -r c505a4aa9582 gui/wm/ws.c --- 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; diff -r ff7cf8f1bd19 -r c505a4aa9582 gui/wm/ws.h --- 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