]> git.sur5r.net Git - i3/i3/blobdiff - src/con.c
Dont include dock clients in ewmh lists
[i3/i3] / src / con.c
index 6918d64880064ead3f013188cda973efa52c7e5d..66c9db69d88e3927473c3e1432d04c8c22c3a6d0 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -241,6 +241,17 @@ bool con_is_leaf(Con *con) {
     return TAILQ_EMPTY(&(con->nodes_head));
 }
 
+/*
+ * Returns true when this con is a leaf node with a managed X11 window (e.g.,
+ * excluding dock containers)
+ */
+bool con_has_managed_window(Con *con) {
+    return (con != NULL
+            && con->window != NULL
+            && con->window->id != XCB_WINDOW_NONE
+            && con_get_workspace(con) != NULL);
+}
+
 /**
  * Returns true if this node has regular or floating children.
  *