diff options
author | Hugo Osvaldo Barrera <hugo@barrera.io> | 2021-08-18 23:27:01 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-26 20:16:14 +0200 |
commit | 62d90a8e959c6edcc752e124a9928cfa2399fbd1 (patch) | |
tree | d7f26db04a7a57b3b304768631348e8450197ba4 /sway/commands/reload.c | |
parent | bb3fd0abc56f39e35dc7f4e86f25da1b4a6efbd7 (diff) |
Use fixed titlebar heights
Use fixed titlebar heights. The default height is calculated based on
font metrics for the configured font and current locale.
Some testing with titles with emoji and CJK characters (which are
substantially higher in my setup) shows that the titlebars retain their
initial value, text does shift up or down, and all titlebars always
remain aligned.
Also drop some also now-unecessary title_height calculations.
Makes also needed to be updated, since they should be positioned with
the same rules.
Diffstat (limited to 'sway/commands/reload.c')
-rw-r--r-- | sway/commands/reload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/reload.c b/sway/commands/reload.c index 3c994d54..09ccd9d4 100644 --- a/sway/commands/reload.c +++ b/sway/commands/reload.c @@ -48,7 +48,7 @@ static void do_reload(void *data) { } list_free_items_and_destroy(bar_ids); - config_update_font_height(true); + config_update_font_height(); root_for_each_container(rebuild_textures_iterator, NULL); arrange_root(); |