]> git.sur5r.net Git - i3/i3/blobdiff - include/con.h
Merge pull request #3102 from jolange/fix3071
[i3/i3] / include / con.h
index 69292411df1de14beac6130b3cbf19831ee61b94..726fec96d145e501898d2793367a3d1572eaa269 100644 (file)
@@ -38,6 +38,12 @@ void con_free(Con *con);
  */
 void con_focus(Con *con);
 
+/**
+ * Sets input focus to the given container and raises it to the top.
+ *
+ */
+void con_activate(Con *con);
+
 /**
  * Closes the given container.
  *
@@ -165,6 +171,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.