diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 21:40:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 21:40:02 +0000 |
| commit | 0b265cc9a5f222769e0a4e80bc360380501694bc (patch) | |
| tree | 50ccd4092b1b5c1958e2b8068d49636c4c6f6514 | |
| parent | wayland: terminal_from_surface(): use term_surface_kind() (diff) | |
render: csd: sort geometry entries
| -rw-r--r-- | render.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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++) { |
