>From b4d2de26ef2588c62e976e4ceced62711bba1a7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <k...@kix.es>
Date: Mon, 2 Apr 2012 23:20:30 +0200
Subject: [PATCH] WindowMaker: Class codes cleaned

The class codes are used in the icon, balloon and other parts. Some class codes 
are not used.

This patch identify the used codes, renumber them, delete the not used codes 
and document the codes.
---
 src/WindowMaker.h |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/WindowMaker.h b/src/WindowMaker.h
index e10b5ab..31a497b 100644
--- a/src/WindowMaker.h
+++ b/src/WindowMaker.h
@@ -26,22 +26,18 @@
 #include <limits.h>
 #include <WINGs/WINGs.h>
 
-
 /* class codes */
 typedef enum {
-    WCLASS_UNKNOWN = 0,
-    WCLASS_WINDOW = 1,         /* managed client windows */
-    WCLASS_MENU = 2,           /* root menus */
-    WCLASS_APPICON = 3,
-    WCLASS_DUMMYWINDOW = 4,    /* window that holds window group leader */
-    WCLASS_MINIWINDOW = 5,
-    WCLASS_DOCK_ICON = 6,
-    WCLASS_PAGER = 7,
-    WCLASS_TEXT_INPUT = 8,
-    WCLASS_FRAME = 9
+    WCLASS_WINDOW = 0,         /* Window contents */
+    WCLASS_MENU = 1,           /* Menus */
+    WCLASS_APPICON = 2,                /* Application Icon &
+                                * dockeable application outside
+                                * the clip/dock */
+    WCLASS_MINIWINDOW = 3,     /* Application minimized */
+    WCLASS_DOCK_ICON = 4,      /* Dock, clip, dockeable app docked */
+    WCLASS_FRAME = 5           /* Window Frame (title, border,... */
 } WClassType;
 
-
 /*
  * generic window levels (a superset of the N*XTSTEP ones)
  * Applications should use levels between WMDesktopLevel and
-- 
1.7.9.1

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From b4d2de26ef2588c62e976e4ceced62711bba1a7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <k...@kix.es>
Date: Mon, 2 Apr 2012 23:20:30 +0200
Subject: [PATCH] WindowMaker: Class codes cleaned

The class codes are used in the icon, balloon and other parts. Some class codes are not used.

This patch identify the used codes, renumber them, delete the not used codes and document the codes.
---
 src/WindowMaker.h |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/WindowMaker.h b/src/WindowMaker.h
index e10b5ab..31a497b 100644
--- a/src/WindowMaker.h
+++ b/src/WindowMaker.h
@@ -26,22 +26,18 @@
 #include <limits.h>
 #include <WINGs/WINGs.h>
 
-
 /* class codes */
 typedef enum {
-    WCLASS_UNKNOWN = 0,
-    WCLASS_WINDOW = 1,		/* managed client windows */
-    WCLASS_MENU = 2,		/* root menus */
-    WCLASS_APPICON = 3,
-    WCLASS_DUMMYWINDOW = 4,	/* window that holds window group leader */
-    WCLASS_MINIWINDOW = 5,
-    WCLASS_DOCK_ICON = 6,
-    WCLASS_PAGER = 7,
-    WCLASS_TEXT_INPUT = 8,
-    WCLASS_FRAME = 9
+    WCLASS_WINDOW = 0,		/* Window contents */
+    WCLASS_MENU = 1,		/* Menus */
+    WCLASS_APPICON = 2,		/* Application Icon &
+				 * dockeable application outside
+				 * the clip/dock */
+    WCLASS_MINIWINDOW = 3,	/* Application minimized */
+    WCLASS_DOCK_ICON = 4,	/* Dock, clip, dockeable app docked */
+    WCLASS_FRAME = 5		/* Window Frame (title, border,... */
 } WClassType;
 
-
 /*
  * generic window levels (a superset of the N*XTSTEP ones)
  * Applications should use levels between WMDesktopLevel and
-- 
1.7.9.1

Reply via email to