diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2022-11-12 17:32:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 17:32:30 +0100 |
commit | 96614a2f32ae5f0a8f39e49d98a4d2183a379516 (patch) | |
tree | b218f24e0af21d4dda7f9c7958f6cb5f394a5319 /include | |
parent | 1ba0eaca2298afda86fecc17549b2d5881aca5fe (diff) | |
download | i3-96614a2f32ae5f0a8f39e49d98a4d2183a379516.tar.gz i3-96614a2f32ae5f0a8f39e49d98a4d2183a379516.zip |
apply updated workspace gap assignments after reload (#5279)
Fixes https://github.com/i3/i3/issues/5257
Diffstat (limited to 'include')
-rw-r--r-- | include/gaps.h | 13 |
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); |