From d15eb936ef2ee533cde2596b4c9b9f09cdb03973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 25 Feb 2020 19:08:14 +0100 Subject: [PATCH] render: make CSD border and title size globally accessible --- render.c | 3 +++ wayland.h | 3 +++ 2 files changed, 6 insertions(+) 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;