aboutsummaryrefslogtreecommitdiff
path: root/include/gaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gaps.h')
-rw-r--r--include/gaps.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gaps.h b/include/gaps.h
index 3652a478..cb4d0093 100644
--- a/include/gaps.h
+++ b/include/gaps.h
@@ -26,3 +26,16 @@ bool gaps_should_inset_con(Con *con, int children);
* the container is not touching the edge of the screen in that direction.
*/
bool gaps_has_adjacent_container(Con *con, direction_t direction);
+
+/**
+ * Returns the configured gaps for this workspace based on the workspace name,
+ * number, and configured workspace gap assignments.
+ */
+gaps_t gaps_for_workspace(Con *ws);
+
+/**
+ * Re-applies all workspace gap assignments to existing workspaces after
+ * reloading the configuration file.
+ *
+ */
+void gaps_reapply_workspace_assignments(void);