summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h3
-rw-r--r--include/sway/config.h10
-rw-r--r--include/sway/tree/container.h6
3 files changed, 13 insertions, 6 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index b0339313..eb446eae 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -172,7 +172,10 @@ sway_cmd cmd_swaybg_command;
172sway_cmd cmd_swaynag_command; 172sway_cmd cmd_swaynag_command;
173sway_cmd cmd_swap; 173sway_cmd cmd_swap;
174sway_cmd cmd_tiling_drag; 174sway_cmd cmd_tiling_drag;
175sway_cmd cmd_title_align;
175sway_cmd cmd_title_format; 176sway_cmd cmd_title_format;
177sway_cmd cmd_titlebar_border_thickness;
178sway_cmd cmd_titlebar_padding;
176sway_cmd cmd_unmark; 179sway_cmd cmd_unmark;
177sway_cmd cmd_urgent; 180sway_cmd cmd_urgent;
178sway_cmd cmd_workspace; 181sway_cmd cmd_workspace;
diff --git a/include/sway/config.h b/include/sway/config.h
index 4927b8e0..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
360enum 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 */
@@ -391,6 +397,9 @@ struct sway_config {
391 size_t font_height; 397 size_t font_height;
392 size_t font_baseline; 398 size_t font_baseline;
393 bool pango_markup; 399 bool pango_markup;
400 int titlebar_border_thickness;
401 int titlebar_h_padding;
402 int titlebar_v_padding;
394 size_t urgent_timeout; 403 size_t urgent_timeout;
395 enum sway_fowa focus_on_window_activation; 404 enum sway_fowa focus_on_window_activation;
396 enum sway_popup_during_fullscreen popup_during_fullscreen; 405 enum sway_popup_during_fullscreen popup_during_fullscreen;
@@ -406,6 +415,7 @@ struct sway_config {
406 bool validating; 415 bool validating;
407 bool auto_back_and_forth; 416 bool auto_back_and_forth;
408 bool show_marks; 417 bool show_marks;
418 enum alignment title_align;
409 bool tiling_drag; 419 bool tiling_drag;
410 420
411 bool smart_gaps; 421 bool smart_gaps;
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index f907aad2..1d0a0ad1 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -10,12 +10,6 @@
10struct sway_view; 10struct sway_view;
11struct sway_seat; 11struct sway_seat;
12 12
13#define TITLEBAR_BORDER_THICKNESS 1
14
15// Padding includes titlebar border
16#define TITLEBAR_H_PADDING 3
17#define TITLEBAR_V_PADDING 4
18
19enum sway_container_layout { 13enum sway_container_layout {
20 L_NONE, 14 L_NONE,
21 L_HORIZ, 15 L_HORIZ,