From 339f20abbe83da4ac094ae875fdaca9479d28ce6 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sat, 16 Mar 2024 16:13:44 +0100 Subject: Create a single pango context in draw_compute_layout --- src/draw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/draw.h') diff --git a/src/draw.h b/src/draw.h index 0b1ac95..c9de967 100644 --- a/src/draw.h +++ b/src/draw.h @@ -15,6 +15,7 @@ typedef struct { typedef struct { PangoFontDescription *desc; + PangoContext *ctx; int height; int width; int left_pad; @@ -42,6 +43,7 @@ typedef struct { Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad); +// TODO: Rework the api so that we don't need to pass the window void draw_compute_layout(Drawer *draw, Window *win, GList *btns); void draw_paint(Drawer *draw, Window *win); -- cgit v1.2.3