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

@ -130,7 +130,10 @@ void client_add_group_bar(Client *c) {
config.tabdata, 0, 0);
wlr_scene_node_lower_to_bottom(&c->group_bar->scene_buffer->node);
wlr_scene_node_set_enabled(&c->group_bar->scene_buffer->node, false);
mango_group_bar_update(c->group_bar, client_get_title(c), 1.0);
mango_group_bar_update(c->group_bar, client_get_title(c),
c->mon ? c->mon->wlr_output->scale
: selmon ? selmon->wlr_output->scale
: 1.0f);
}
void client_focus_group_member(Client *c) {