diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 18:02:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 18:09:36 +0000 |
| commit | 718e5b4a7787cc9d68b9c422b8b6703f3b7c5c26 (patch) | |
| tree | 4a32c78ffd2370d32d9d88051f78346973d31a8f /render.c | |
| parent | render: scrollback indicator: apply weston sub-surface quirk (diff) | |
config: rename scrollback-indicator-style to scrollback-indicator-position
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1290,7 +1290,7 @@ render_csd(struct terminal *term) static void render_scrollback_position(struct terminal *term) { - if (term->conf->scrollback.indicator.style == SCROLLBACK_INDICATOR_STYLE_NONE) + if (term->conf->scrollback.indicator.position == SCROLLBACK_INDICATOR_POSITION_NONE) return; struct wayland *wayl = term->wl; @@ -1414,16 +1414,16 @@ render_scrollback_position(struct terminal *term) /* *Where* to render - parent relative coordinates */ int surf_top = 0; - switch (term->conf->scrollback.indicator.style) { - case SCROLLBACK_INDICATOR_STYLE_NONE: + switch (term->conf->scrollback.indicator.position) { + case SCROLLBACK_INDICATOR_POSITION_NONE: assert(false); return; - case SCROLLBACK_INDICATOR_STYLE_FIXED: + case SCROLLBACK_INDICATOR_POSITION_FIXED: surf_top = term->cell_height - margin; break; - case SCROLLBACK_INDICATOR_STYLE_RELATIVE: { + case SCROLLBACK_INDICATOR_POSITION_RELATIVE: { int lines = term->rows - 3; /* Avoid using first and two last rows */ assert(lines > 0); |
