[MPlayer-cvslog] r35593 - in trunk/gui/wm: ws.c ws.h

ib subversion at mplayerhq.hu
Tue Dec 4 20:13:18 CET 2012


Author: ib
Date: Tue Dec  4 20:13:18 2012
New Revision: 35593

Log:
Define symbolic constant wsNone for "no window state".

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 20:10:44 2012	(r35592)
+++ trunk/gui/wm/ws.c	Tue Dec  4 20:13:18 2012	(r35593)
@@ -668,7 +668,7 @@ Bool wsEvents(Display *display, XEvent *
     if (l == -1)
         return !wsTrue;
 
-    wsWindowList[l]->State = 0;
+    wsWindowList[l]->State = wsNone;
 
     switch (Event->type) {
     case ClientMessage:

Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h	Tue Dec  4 20:10:44 2012	(r35592)
+++ trunk/gui/wm/ws.h	Tue Dec  4 20:13:18 2012	(r35593)
@@ -85,6 +85,7 @@
 #define wsRGB15 7
 #define wsBGR15 8
 
+#define wsNone                   0
 #define wsWindowVisible          1
 #define wsWindowPartialVisible   2
 #define wsWindowNotVisible       4


More information about the MPlayer-cvslog mailing list