aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-29 17:42:11 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-29 17:42:11 +1000
commit6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0 (patch)
tree5aa498b0d4ec3a215a3ea70f082e6ab1d9f361f2 /sway/tree/container.c
parentMerge pull request #2068 from RedSoxFan/workspace-layout (diff)
downloadsway-6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0.tar.gz
sway-6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0.tar.zst
sway-6f4cb2b29d5a708d58a88c40ed6cc01bf471a8f0.zip
Add tree representation to IPC workspace description
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 59137d88..33d88d7f 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -842,7 +842,7 @@ static size_t get_tree_representation(struct sway_container *parent, char *buffe
842} 842}
843 843
844void container_notify_subtree_changed(struct sway_container *container) { 844void container_notify_subtree_changed(struct sway_container *container) {
845 if (!container || container->type != C_CONTAINER) { 845 if (!container || container->type < C_WORKSPACE) {
846 return; 846 return;
847 } 847 }
848 free(container->formatted_title); 848 free(container->formatted_title);
@@ -856,9 +856,11 @@ void container_notify_subtree_changed(struct sway_container *container) {
856 get_tree_representation(container, buffer); 856 get_tree_representation(container, buffer);
857 857
858 container->formatted_title = buffer; 858 container->formatted_title = buffer;
859 container_calculate_title_height(container); 859 if (container->type != C_WORKSPACE) {
860 container_update_title_textures(container); 860 container_calculate_title_height(container);
861 container_notify_subtree_changed(container->parent); 861 container_update_title_textures(container);
862 container_notify_subtree_changed(container->parent);
863 }
862} 864}
863 865
864size_t container_titlebar_height() { 866size_t container_titlebar_height() {