add window type atoms and a XXX to use them
authorMikael Magnusson <mikachu@comhem.se>
Fri, 8 Jun 2007 00:45:08 +0000 (00:45 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 8 Jun 2007 00:45:08 +0000 (00:45 +0000)
xprop.c
xprop.h

diff --git a/xprop.c b/xprop.c
index 60416df..5ad82f3 100644 (file)
--- a/xprop.c
+++ b/xprop.c
@@ -2,9 +2,7 @@
 #include "rspanel.h"
 
 char *xprop_names[] = {
-    /* types */
     "UTF8_STRING",
-    /* clients */
     "KWM_WIN_ICON",
     "WM_STATE",
     "WM_NAME",
@@ -16,12 +14,25 @@ char *xprop_names[] = {
     "_NET_WM_STATE_HIDDEN",
     "_NET_WM_DESKTOP",
     "_NET_WM_WINDOW_TYPE",
-    "_NET_WM_WINDOW_TYPE_DOCK",
+/* XXX only show some of these */
+"_NET_WM_WINDOW_TYPE_DESKTOP",
+"_NET_WM_WINDOW_TYPE_DOCK",
+"_NET_WM_WINDOW_TYPE_TOOLBAR",
+"_NET_WM_WINDOW_TYPE_MENU",
+"_NET_WM_WINDOW_TYPE_UTILITY",
+"_NET_WM_WINDOW_TYPE_SPLASH",
+"_NET_WM_WINDOW_TYPE_DIALOG",
+"_NET_WM_WINDOW_TYPE_DROPDOWN_MENU",
+"_NET_WM_WINDOW_TYPE_POPUP_MENU",
+"_NET_WM_WINDOW_TYPE_TOOLTIP",
+"_NET_WM_WINDOW_TYPE_NOTIFICATION",
+"_NET_WM_WINDOW_TYPE_COMBO",
+"_NET_WM_WINDOW_TYPE_DND",
+"_NET_WM_WINDOW_TYPE_NORMAL",
     "_NET_WM_STRUT",
     "_NET_WM_ICON_GEOMETRY",
     "_NET_WM_ICON",
     "_WIN_HINTS",
-    /* root */
     "_NET_CLIENT_LIST",
     "_NET_CLIENT_LIST_STACKING",
     "_NET_NUMBER_OF_DESKTOPS",
diff --git a/xprop.h b/xprop.h
index 92e7488..a58e756 100644 (file)
--- a/xprop.h
+++ b/xprop.h
@@ -21,7 +21,20 @@ typedef enum {
     _NET_WM_STATE_HIDDEN,
     _NET_WM_DESKTOP,
     _NET_WM_WINDOW_TYPE,
-    _NET_WM_WINDOW_TYPE_DOCK,
+_NET_WM_WINDOW_TYPE_DESKTOP,
+_NET_WM_WINDOW_TYPE_DOCK,
+_NET_WM_WINDOW_TYPE_TOOLBAR,
+_NET_WM_WINDOW_TYPE_MENU,
+_NET_WM_WINDOW_TYPE_UTILITY,
+_NET_WM_WINDOW_TYPE_SPLASH,
+_NET_WM_WINDOW_TYPE_DIALOG,
+_NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
+_NET_WM_WINDOW_TYPE_POPUP_MENU,
+_NET_WM_WINDOW_TYPE_TOOLTIP,
+_NET_WM_WINDOW_TYPE_NOTIFICATION,
+_NET_WM_WINDOW_TYPE_COMBO,
+_NET_WM_WINDOW_TYPE_DND,
+_NET_WM_WINDOW_TYPE_NORMAL,
     _NET_WM_STRUT,
     _NET_WM_ICON_GEOMETRY,
     _NET_WM_ICON,