]> git.sur5r.net Git - i3/i3/blobdiff - include/data.h
Implement the window_role criterion (checks WM_WINDOW_ROLE)
[i3/i3] / include / data.h
index 1db7c4428a16bd22da48267bf72062ca6bab496b..f6052b9f81154ed98aece23cd086e1792dfb33ba 100644 (file)
@@ -264,6 +264,11 @@ struct Window {
      * application supports _NET_WM_NAME, in COMPOUND_TEXT otherwise). */
     char *name_x;
 
+    /** The WM_WINDOW_ROLE of this window (for example, the pidgin buddy window
+     * sets "buddy list"). Useful to match specific windows in assignments or
+     * for_window. */
+    char *role;
+
     /** Flag to force re-rendering the decoration upon changes */
     bool name_x_changed;
 
@@ -298,6 +303,7 @@ struct Match {
     struct regex *class;
     struct regex *instance;
     struct regex *mark;
+    struct regex *role;
     enum {
         M_DONTCHECK = -1,
         M_NODOCK = 0,