summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Konstantin Pospelov <kupospelov@gmail.com>2018-06-03 00:32:18 +0300
committerLibravatar Konstantin Pospelov <kupospelov@gmail.com>2018-06-03 00:32:18 +0300
commite6baac4297e448deb126b75e9281c4871c71b691 (patch)
tree7893f26f27271d3583a388fa635e72aef6e2f089
parentMerge pull request #2094 from emersion/damage-schedule (diff)
downloadsway-e6baac4297e448deb126b75e9281c4871c71b691.tar.gz
sway-e6baac4297e448deb126b75e9281c4871c71b691.tar.zst
sway-e6baac4297e448deb126b75e9281c4871c71b691.zip
Fix view title update order
This commit fixes the function call order to make sure that the title texture is updated using the relevant global font size.
-rw-r--r--sway/tree/view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 79441d49..c9c82405 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -790,8 +790,10 @@ void view_update_title(struct sway_view *view, bool force) {
790 view->swayc->formatted_title = NULL; 790 view->swayc->formatted_title = NULL;
791 } 791 }
792 container_calculate_title_height(view->swayc); 792 container_calculate_title_height(view->swayc);
793 container_update_title_textures(view->swayc);
794 config_update_font_height(false); 793 config_update_font_height(false);
794
795 // Update title after the global font height is updated
796 container_update_title_textures(view->swayc);
795} 797}
796 798
797static bool find_by_mark_iterator(struct sway_container *con, 799static bool find_by_mark_iterator(struct sway_container *con,