X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fworkspace.h;h=1bee64e08d5cf81f08612e90a76fb1bc8bc8cb6a;hb=27535398f5635dbc9a0a0732b2d150ab091e80ad;hp=82d18919c232ff4982cc4dfd78a4d370ee4ed71e;hpb=e89f39158974e4d68491a8dcd471f6ee70f5b46f;p=i3%2Fi3 diff --git a/include/workspace.h b/include/workspace.h index 82d18919..1bee64e0 100644 --- a/include/workspace.h +++ b/include/workspace.h @@ -25,7 +25,16 @@ */ 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. @@ -185,4 +194,4 @@ Con *workspace_encapsulate(Con *ws); * This returns true if and only if moving the workspace was successful. * */ -bool workspace_move_to_output(Con *ws, char *output); +bool workspace_move_to_output(Con *ws, const char *output);