mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
osd: consider item.padding.y when centoring workspace name
This commit is contained in:
parent
81204b0537
commit
d8bd8c5a3e
1 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,8 @@ create_osd_scene(struct output *output, struct wl_array *views)
|
||||||
struct scaled_font_buffer *font_buffer =
|
struct scaled_font_buffer *font_buffer =
|
||||||
scaled_font_buffer_create(output->osd_scene.tree);
|
scaled_font_buffer_create(output->osd_scene.tree);
|
||||||
wlr_scene_node_set_position(&font_buffer->scene_buffer->node,
|
wlr_scene_node_set_position(&font_buffer->scene_buffer->node,
|
||||||
x, y + theme->osd_window_switcher_item_active_border_width);
|
x, y + (theme->osd_window_switcher_item_height
|
||||||
|
- font_height(&font)) / 2);
|
||||||
scaled_font_buffer_update(font_buffer, workspace_name, 0,
|
scaled_font_buffer_update(font_buffer, workspace_name, 0,
|
||||||
&font, text_color, bg_color);
|
&font, text_color, bg_color);
|
||||||
y += theme->osd_window_switcher_item_height;
|
y += theme->osd_window_switcher_item_height;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue