diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-22 19:23:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-24 09:02:42 +0000 |
| commit | 0cf7a196163d51c344361bb2b79c145003dc3555 (patch) | |
| tree | 88d72ceab929975c7cf07ef60df61f34895a02ef /wayland.h | |
| parent | render: 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |
