aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-22 19:23:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-24 09:02:42 +0000
commit0cf7a196163d51c344361bb2b79c145003dc3555 (patch)
tree88d72ceab929975c7cf07ef60df61f34895a02ef /wayland.h
parentrender: render_osd() now needs a ‘font’ argument (diff)
render: csd_title(): use a custom font, sized based on the title bar’s height
We still use the primary font, but use a custom size, based on the title bar’s height. This fixes an issue where the window title could be way too small, or way too big. And changed size when the terminal font size was changed.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index f62819a4..bc044169 100644
--- a/wayland.h
+++ b/wayland.h
@@ -20,6 +20,7 @@
#include <xdg-activation-v1.h>
#endif
+#include <fcft/fcft.h>
#include <tllist.h>
#include "fdm.h"
@@ -402,6 +403,7 @@ struct wl_window {
struct {
struct wl_surf_subsurf surface[CSD_SURF_COUNT];
+ struct fcft_font *font;
int move_timeout_fd;
uint32_t serial;
} csd;