aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-24 21:40:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-24 21:40:02 +0000
commit0b265cc9a5f222769e0a4e80bc360380501694bc (patch)
tree50ccd4092b1b5c1958e2b8068d49636c4c6f6514
parentwayland: terminal_from_surface(): use term_surface_kind() (diff)
render: csd: sort geometry entries
-rw-r--r--render.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/render.c b/render.c
index 3e7f57b1..bc054046 100644
--- a/render.c
+++ b/render.c
@@ -664,15 +664,15 @@ render_csd(struct terminal *term)
{
LOG_INFO("rendering CSD");
- const int border_width = 2 * term->scale;
+ const int border_width = 1 * term->scale;
const int title_height = 20 * term->scale;
const int geom[5][4] = {
{0, -title_height, term->width, title_height},
- {-border_width, -title_height - border_width, term->width + 2 * border_width, border_width},
- {-border_width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width},
- {term->width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width},
- {-border_width, term->height, term->width + 2 * border_width, border_width},
+ {-border_width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width}, /* left */
+ {term->width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width}, /* right */
+ {-border_width, -title_height - border_width, term->width + 2 * border_width, border_width}, /* top */
+ {-border_width, term->height, term->width + 2 * border_width, border_width}, /* bottom */
};
for (size_t i = 0; i < 5; i++) {