mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
render: make CSD border and title size globally accessible
This commit is contained in:
parent
3f601a31dc
commit
d15eb936ef
2 changed files with 6 additions and 0 deletions
3
render.c
3
render.c
|
|
@ -24,6 +24,9 @@
|
||||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
|
const int csd_border_size = 5;
|
||||||
|
const int csd_title_size = 20;
|
||||||
|
|
||||||
struct renderer {
|
struct renderer {
|
||||||
struct fdm *fdm;
|
struct fdm *fdm;
|
||||||
struct wayland *wayl;
|
struct wayland *wayl;
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,9 @@ struct wl_primary {
|
||||||
uint32_t serial;
|
uint32_t serial;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern const int csd_border_size;
|
||||||
|
extern const int csd_title_size;
|
||||||
|
|
||||||
struct wayland;
|
struct wayland;
|
||||||
struct wl_window {
|
struct wl_window {
|
||||||
struct terminal *term;
|
struct terminal *term;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue