>From 94c57b7315b39158e881cb745cf14d97f7fbfc54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 2 Apr 2012 23:20:30 +0200
Subject: [PATCH 2/3] 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.

This patch holds the class Unknown, because in some place/case the class value 
is not initialized.
---
 src/WindowMaker.h |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/WindowMaker.h b/src/WindowMaker.h
index e10b5ab..de895bc 100644
--- a/src/WindowMaker.h
+++ b/src/WindowMaker.h
@@ -26,22 +26,19 @@
 #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_WCLASS_UNKNOWN = 0, /* Class Not Set */
+    WCLASS_WINDOW = 1,         /* Window contents */
+    WCLASS_MENU = 2,           /* Menus */
+    WCLASS_APPICON = 3,                /* Application Icon &
+                                * dockeable application outside
+                                * the clip/dock */
+    WCLASS_MINIWINDOW = 4,     /* Application minimized */
+    WCLASS_DOCK_ICON = 5,      /* Dock, clip, dockeable app docked */
+    WCLASS_FRAME = 6           /* 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 94c57b7315b39158e881cb745cf14d97f7fbfc54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 2 Apr 2012 23:20:30 +0200
Subject: [PATCH 2/3] 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.

This patch holds the class Unknown, because in some place/case the class value is not initialized.
---
 src/WindowMaker.h |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/WindowMaker.h b/src/WindowMaker.h
index e10b5ab..de895bc 100644
--- a/src/WindowMaker.h
+++ b/src/WindowMaker.h
@@ -26,22 +26,19 @@
 #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_WCLASS_UNKNOWN = 0,	/* Class Not Set */
+    WCLASS_WINDOW = 1,		/* Window contents */
+    WCLASS_MENU = 2,		/* Menus */
+    WCLASS_APPICON = 3,		/* Application Icon &
+				 * dockeable application outside
+				 * the clip/dock */
+    WCLASS_MINIWINDOW = 4,	/* Application minimized */
+    WCLASS_DOCK_ICON = 5,	/* Dock, clip, dockeable app docked */
+    WCLASS_FRAME = 6		/* 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