aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:08:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:08:14 +0000
commitd15eb936ef2ee533cde2596b4c9b9f09cdb03973 (patch)
treecd39b97d33fca5eea54c26a73fbb4452270d1830
parentshm: handle EINTR in posix_fallocate() (diff)
render: make CSD border and title size globally accessible
-rw-r--r--render.c3
-rw-r--r--wayland.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/render.c b/render.c
index bc054046..845bc0f1 100644
--- a/render.c
+++ b/render.c
@@ -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;
diff --git a/wayland.h b/wayland.h
index 7de13850..243df207 100644
--- a/wayland.h
+++ b/wayland.h
@@ -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;