]> Dogcows Code - chaz/openbox/blobdiff - openbox/window.c
Merge branch 'master' into chaz
[chaz/openbox] / openbox / window.c
index ad61294d3ef734343904cdaab162e19a95c9673f..51806f9c325f346c2dbbf40730b50245054bdc77 100644 (file)
@@ -26,6 +26,7 @@
 #include "prompt.h"
 #include "debug.h"
 #include "grab.h"
+#include "obt/prop.h"
 #include "obt/xqueue.h"
 
 static GHashTable *window_map;
@@ -186,6 +187,20 @@ void window_manage(Window win)
             }
             XFree(wmhints);
         }
+        /* This is a new method to declare that a window is a dockapp, being
+           implemented by Windowmaker, to alleviate pain in writing GTK+
+           dock apps.
+           http://thread.gmane.org/gmane.comp.window-managers.openbox/4881
+        */
+        if (!is_dockapp) {
+            gchar **ss;
+            if (OBT_PROP_GETSS_TYPE(win, WM_CLASS, STRING_NO_CC, &ss))
+            {
+                if (ss[0] && ss[1] && strcmp(ss[1], "DockApp") == 0)
+                    is_dockapp = TRUE;
+                g_strfreev(ss);
+            }
+        }
     }
 
     if (!no_manage) {
This page took 0.027136 seconds and 4 git commands to generate.