diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/reload.c | 1 | ||||
-rw-r--r-- | sway/commands/title_format.c | 1 | ||||
-rw-r--r-- | sway/config.c | 1 | ||||
-rw-r--r-- | sway/tree/view.c | 1 |
4 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands/reload.c b/sway/commands/reload.c index 09ccd9d4..76f14bba 100644 --- a/sway/commands/reload.c +++ b/sway/commands/reload.c @@ -48,7 +48,6 @@ static void do_reload(void *data) { } list_free_items_and_destroy(bar_ids); - config_update_font_height(); root_for_each_container(rebuild_textures_iterator, NULL); arrange_root(); diff --git a/sway/commands/title_format.c b/sway/commands/title_format.c index 8d907e76..a2446b7e 100644 --- a/sway/commands/title_format.c +++ b/sway/commands/title_format.c @@ -23,6 +23,5 @@ struct cmd_results *cmd_title_format(int argc, char **argv) { } view->title_format = format; view_update_title(view, true); - config_update_font_height(); return cmd_results_new(CMD_SUCCESS, NULL); } diff --git a/sway/config.c b/sway/config.c index 1ddedc7e..6d0f465a 100644 --- a/sway/config.c +++ b/sway/config.c @@ -237,6 +237,7 @@ static void config_defaults(struct sway_config *config) { config->default_orientation = L_NONE; if (!(config->font = strdup("monospace 10"))) goto cleanup; config->font_height = 17; // height of monospace 10 + config->font_baseline = 11; // baselint of monospace 10 config->urgent_timeout = 500; config->focus_on_window_activation = FOWA_URGENT; config->popup_during_fullscreen = POPUP_SMART; diff --git a/sway/tree/view.c b/sway/tree/view.c index ccb03088..b2f70d70 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -1280,7 +1280,6 @@ void view_update_title(struct sway_view *view, bool force) { view->container->title = NULL; view->container->formatted_title = NULL; } - config_update_font_height(); // Update title after the global font height is updated container_update_title_textures(view->container); |