diff options
author | Orestis Floros <orestisflo@gmail.com> | 2022-11-13 16:03:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 16:03:58 +0100 |
commit | 029cb8af193882777c9ad5d256e8784643f6e8a9 (patch) | |
tree | cb6abfb3c939d4aa14059e0e9f3d8873c441c821 /include | |
parent | 60c3fedb7334cfc5c99bb0c729f13298c1cfce1c (diff) | |
download | i3-029cb8af193882777c9ad5d256e8784643f6e8a9.tar.gz i3-029cb8af193882777c9ad5d256e8784643f6e8a9.zip |
Use mask to determine workspace gaps assignments (#5283)
Fixes #5282
Diffstat (limited to 'include')
-rw-r--r-- | include/data.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/data.h b/include/data.h index 67a573c2..483aecab 100644 --- a/include/data.h +++ b/include/data.h @@ -155,6 +155,17 @@ struct gaps_t { int left; }; +typedef enum { + GAPS_INNER = (1 << 0), + GAPS_TOP = (1 << 1), + GAPS_RIGHT = (1 << 2), + GAPS_BOTTOM = (1 << 3), + GAPS_LEFT = (1 << 4), + GAPS_VERTICAL = (GAPS_TOP | GAPS_BOTTOM), + GAPS_HORIZONTAL = (GAPS_RIGHT | GAPS_LEFT), + GAPS_OUTER = (GAPS_VERTICAL | GAPS_HORIZONTAL), +} gaps_mask_t; + /** * Focus wrapping modes. */ @@ -229,6 +240,7 @@ struct Workspace_Assignment { char *name; char *output; gaps_t gaps; + gaps_mask_t gaps_mask; TAILQ_ENTRY(Workspace_Assignment) ws_assignments; }; |