[MPlayer-cvslog] r35592 - in trunk/gui/wm: ws.c ws.h
ib
subversion at mplayerhq.hu
Tue Dec 4 20:10:44 CET 2012
Author: ib
Date: Tue Dec 4 20:10:44 2012
New Revision: 35592
Log:
Rename wsNone wsNo and use it instead of a numeric constant.
Modified:
trunk/gui/wm/ws.c
trunk/gui/wm/ws.h
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Tue Dec 4 19:55:24 2012 (r35591)
+++ trunk/gui/wm/ws.c Tue Dec 4 20:10:44 2012 (r35592)
@@ -573,10 +573,10 @@ void wsCreateWindow(wsTWindow *win, int
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 @@ void wsDestroyWindow(wsTWindow *win)
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 @@ Bool wsEvents(Display *display, XEvent *
case UnmapNotify:
i = wsWindowUnmapped;
- wsWindowList[l]->Mapped = wsNone;
+ wsWindowList[l]->Mapped = wsNo;
goto expose;
case FocusIn:
@@ -716,11 +716,11 @@ Bool wsEvents(Display *display, XEvent *
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 @@ expose:
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;
Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h Tue Dec 4 19:55:24 2012 (r35591)
+++ trunk/gui/wm/ws.h Tue Dec 4 20:10:44 2012 (r35592)
@@ -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
More information about the MPlayer-cvslog
mailing list