From e6562c8cd26c2e7caa4c83aaa5d734643fba4015 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sun, 25 Nov 2018 22:08:58 -0500 Subject: Implement title alignment This adds support for `i3 4.16`'s ability to set the title alignment. The command is `title_align left|center|right`. When the title is on the right, marks are moved to the left. Otherwise, they are on the right. --- include/sway/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/sway/config.h') diff --git a/include/sway/config.h b/include/sway/config.h index a6920835..1ff9a104 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -357,6 +357,12 @@ enum mouse_warping_mode { WARP_CONTAINER }; +enum alignment { + ALIGN_LEFT, + ALIGN_CENTER, + ALIGN_RIGHT +}; + /** * The configuration struct. The result of loading a config file. */ @@ -409,6 +415,7 @@ struct sway_config { bool validating; bool auto_back_and_forth; bool show_marks; + enum alignment title_align; bool tiling_drag; bool smart_gaps; -- cgit v1.2.3