mirror of
https://github.com/swaywm/sway.git
synced 2025-04-04 03:17:46 +03:00
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.
This commit is contained in:
parent
bb3fd0abc5
commit
62d90a8e95
11 changed files with 49 additions and 66 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue