]> git.sur5r.net Git - i3/i3/blobdiff - include/con.h
Add con_exists function
[i3/i3] / include / con.h
index 6cd1ef3e41eca1ad90c3af125ecae7fa10161675..674ee61d3b1fd177a537cbaff2a5f0ea878f5c31 100644 (file)
@@ -165,6 +165,13 @@ Con *con_by_window_id(xcb_window_t window);
  */
 Con *con_by_con_id(long target);
 
+/**
+ * Returns true if the given container (still) exists.
+ * This can be used, e.g., to make sure a container hasn't been closed in the meantime.
+ *
+ */
+bool con_exists(Con *con);
+
 /**
  * Returns the container with the given frame ID or NULL if no such container
  * exists.