render: make CSD border and title size globally accessible

This commit is contained in:
Daniel Eklöf 2020-02-25 19:08:14 +01:00
parent 3f601a31dc
commit d15eb936ef
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,9 @@
#define min(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 fdm *fdm;
struct wayland *wayl;

View file

@ -82,6 +82,9 @@ struct wl_primary {
uint32_t serial;
};
extern const int csd_border_size;
extern const int csd_title_size;
struct wayland;
struct wl_window {
struct terminal *term;