aboutsummaryrefslogtreecommitdiff
path: root/include/swaynag
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@barrera.io>2022-07-01 12:23:04 +0200
committerSimon Ser <contact@emersion.fr>2022-07-01 13:05:58 +0200
commit80e386fd97c0da00970f0acc007574151048cfbf (patch)
treedf11d53184b20e3f1afe86b8272420349fd9b552 /include/swaynag
parent75605491a54f8647740fdba75dd2ad7bae9e0ca7 (diff)
Reuse parsed PangoFontDescription
Avoids parsing the configured font each time text is rendered.
Diffstat (limited to 'include/swaynag')
-rw-r--r--include/swaynag/types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
index 3c3b2754..18f218e0 100644
--- a/include/swaynag/types.h
+++ b/include/swaynag/types.h
@@ -4,7 +4,8 @@
struct swaynag_type {
char *name;
- char *font;
+ char *font; // Used for debugging.
+ PangoFontDescription *font_description;
char *output;
uint32_t anchors;
int32_t layer; // enum zwlr_layer_shell_v1_layer or -1 if unset