diff options
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/tree/container.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 598a4f3d..a5f591ce 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -11,6 +11,12 @@ extern struct sway_container root_container; 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 + /** * Different kinds of containers. * @@ -210,6 +216,15 @@ void container_update_title_textures(struct sway_container *container); */ void container_calculate_title_height(struct sway_container *container); -void container_notify_child_title_changed(struct sway_container *container); +/** + * Notify a container that a tree modification has changed in its children, + * so the container can update its tree representation. + */ +void container_notify_subtree_changed(struct sway_container *container); + +/** + * Return the height of a regular title bar. + */ +size_t container_titlebar_height(void); #endif |