diff options
author | emersion <contact@emersion.fr> | 2018-11-24 08:59:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 08:59:01 +0100 |
commit | d440468d2deb31d311564a5b796608136cf99e49 (patch) | |
tree | 01e58548cb5199ef8a682c8634655aeeef51d0b8 /include | |
parent | d9ed1f080b23067db432b358a5d15b9c94d2c59d (diff) | |
parent | 7555c7efdce66c7de7a5320879c501e901a5aab7 (diff) |
Merge pull request #3145 from fdlamotte/master
Adding commands for configuring titlebar borders and padding
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 2 | ||||
-rw-r--r-- | include/sway/config.h | 3 | ||||
-rw-r--r-- | include/sway/tree/container.h | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index b0339313..e6036e51 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -173,6 +173,8 @@ sway_cmd cmd_swaynag_command; sway_cmd cmd_swap; sway_cmd cmd_tiling_drag; sway_cmd cmd_title_format; +sway_cmd cmd_titlebar_border_thickness; +sway_cmd cmd_titlebar_padding; sway_cmd cmd_unmark; sway_cmd cmd_urgent; sway_cmd cmd_workspace; diff --git a/include/sway/config.h b/include/sway/config.h index 4927b8e0..a6920835 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -391,6 +391,9 @@ struct sway_config { size_t font_height; size_t font_baseline; bool pango_markup; + int titlebar_border_thickness; + int titlebar_h_padding; + int titlebar_v_padding; size_t urgent_timeout; enum sway_fowa focus_on_window_activation; enum sway_popup_during_fullscreen popup_during_fullscreen; 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 @@ struct sway_view; struct sway_seat; -#define TITLEBAR_BORDER_THICKNESS 1 - -// Padding includes titlebar border -#define TITLEBAR_H_PADDING 3 -#define TITLEBAR_V_PADDING 4 - enum sway_container_layout { L_NONE, L_HORIZ, |