font: use PangoWeight enum

No change in functionality.

Suggested-by: @spl237
This commit is contained in:
Johan Malm 2025-04-23 20:01:26 +01:00 committed by Johan Malm
parent 5148c2aa31
commit 94ead35227
4 changed files with 17 additions and 68 deletions

View file

@ -297,7 +297,7 @@ create_osd_scene(struct output *output, struct wl_array *views)
/* Draw workspace indicator */
if (show_workspace) {
struct font font = rc.font_osd;
font.weight = FONT_WEIGHT_BOLD;
font.weight = PANGO_WEIGHT_BOLD;
/* Center workspace indicator on the x axis */
int x = (w - font_width(&font, workspace_name)) / 2;