]> git.sur5r.net Git - i3/i3/blobdiff - include/workspace.h
Extract workspace names from bindings before reordering.
[i3/i3] / include / workspace.h
index 82d18919c232ff4982cc4dfd78a4d370ee4ed71e..21ab18d69d5043e663312ce1141495410db0a88c 100644 (file)
  */
 Con *workspace_get(const char *num, bool *created);
 
-/*
+/**
+ * Extracts workspace names from keybindings (e.g. “web” from “bindsym $mod+1
+ * workspace web”), so that when an output needs a workspace, i3 can start with
+ * the first configured one. Needs to be called before reorder_bindings() so
+ * that the config-file order is used, not the i3-internal order.
+ *
+ */
+void extract_workspace_names_from_bindings(void);
+
+/**
  * Returns a pointer to a new workspace in the given output. The workspace
  * is created attached to the tree hierarchy through the given content
  * container.