diff options
author | emersion <contact@emersion.fr> | 2018-11-26 09:28:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 09:28:25 +0100 |
commit | c2921b2e613642ec147513607fb13d98ee43cee7 (patch) | |
tree | 20949c3508ada4d015e57504abbd1c62f0f5133b /include | |
parent | Merge pull request #3183 from emersion/fix-escape-pango (diff) | |
parent | Implement title alignment (diff) | |
download | sway-c2921b2e613642ec147513607fb13d98ee43cee7.tar.gz sway-c2921b2e613642ec147513607fb13d98ee43cee7.tar.zst sway-c2921b2e613642ec147513607fb13d98ee43cee7.zip |
Merge pull request #3169 from RedSoxFan/title-align
Implement title alignment
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index e6036e51..eb446eae 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -172,6 +172,7 @@ sway_cmd cmd_swaybg_command; | |||
172 | sway_cmd cmd_swaynag_command; | 172 | sway_cmd cmd_swaynag_command; |
173 | sway_cmd cmd_swap; | 173 | sway_cmd cmd_swap; |
174 | sway_cmd cmd_tiling_drag; | 174 | sway_cmd cmd_tiling_drag; |
175 | sway_cmd cmd_title_align; | ||
175 | sway_cmd cmd_title_format; | 176 | sway_cmd cmd_title_format; |
176 | sway_cmd cmd_titlebar_border_thickness; | 177 | sway_cmd cmd_titlebar_border_thickness; |
177 | sway_cmd cmd_titlebar_padding; | 178 | sway_cmd cmd_titlebar_padding; |
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 { | |||
357 | WARP_CONTAINER | 357 | WARP_CONTAINER |
358 | }; | 358 | }; |
359 | 359 | ||
360 | enum alignment { | ||
361 | ALIGN_LEFT, | ||
362 | ALIGN_CENTER, | ||
363 | ALIGN_RIGHT | ||
364 | }; | ||
365 | |||
360 | /** | 366 | /** |
361 | * The configuration struct. The result of loading a config file. | 367 | * The configuration struct. The result of loading a config file. |
362 | */ | 368 | */ |
@@ -409,6 +415,7 @@ struct sway_config { | |||
409 | bool validating; | 415 | bool validating; |
410 | bool auto_back_and_forth; | 416 | bool auto_back_and_forth; |
411 | bool show_marks; | 417 | bool show_marks; |
418 | enum alignment title_align; | ||
412 | bool tiling_drag; | 419 | bool tiling_drag; |
413 | 420 | ||
414 | bool smart_gaps; | 421 | bool smart_gaps; |