mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Add tree representation to IPC workspace description
This commit is contained in:
parent
3482eebaca
commit
6f4cb2b29d
3 changed files with 15 additions and 7 deletions
|
|
@ -842,7 +842,7 @@ static size_t get_tree_representation(struct sway_container *parent, char *buffe
|
|||
}
|
||||
|
||||
void container_notify_subtree_changed(struct sway_container *container) {
|
||||
if (!container || container->type != C_CONTAINER) {
|
||||
if (!container || container->type < C_WORKSPACE) {
|
||||
return;
|
||||
}
|
||||
free(container->formatted_title);
|
||||
|
|
@ -856,9 +856,11 @@ void container_notify_subtree_changed(struct sway_container *container) {
|
|||
get_tree_representation(container, buffer);
|
||||
|
||||
container->formatted_title = buffer;
|
||||
container_calculate_title_height(container);
|
||||
container_update_title_textures(container);
|
||||
container_notify_subtree_changed(container->parent);
|
||||
if (container->type != C_WORKSPACE) {
|
||||
container_calculate_title_height(container);
|
||||
container_update_title_textures(container);
|
||||
container_notify_subtree_changed(container->parent);
|
||||
}
|
||||
}
|
||||
|
||||
size_t container_titlebar_height() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue