opt: optimize text draw for hidpi

This commit is contained in:
DreamMaoMao 2026-06-23 09:30:28 +08:00
parent b0e054bf5d
commit 24af062672
3 changed files with 8 additions and 3 deletions

View file

@ -6876,7 +6876,8 @@ void updatetitle(struct wl_listener *listener, void *data) {
const char *title;
title = client_get_title(c);
mango_group_bar_update(c->group_bar, title, 1.0);
mango_group_bar_update(c->group_bar, title,
c->mon ? c->mon->wlr_output->scale : 1.0f);
if (title && c->foreign_toplevel)
wlr_foreign_toplevel_handle_v1_set_title(c->foreign_toplevel, title);
if (title && c->ext_foreign_toplevel) {