diff options
| author | tokyo4j <hrak1529@gmail.com> | 2024-08-14 16:18:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-08-20 04:59:33 +0000 |
| commit | a2fc2a986eedc5ac7c83ae21618acedcb7b7aab8 (patch) | |
| tree | 7a423f6235043f711ca8b80fd4bb5b766953ba6c /render.c | |
| parent | term: thrd_join() returns thrd_success on success, not 0 (diff) | |
render: follow cursor.unfocused-style regardless of cursor.style
Before this commit, cursor.unfocused-style was effective only with
cursor.style=block
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -591,22 +591,22 @@ draw_cursor(const struct terminal *term, const struct cell *cell, pixman_color_t text_color; cursor_colors_for_cell(term, cell, fg, bg, &cursor_color, &text_color); - switch (term->cursor_style) { - case CURSOR_BLOCK: - if (unlikely(!term->kbd_focus)) { - switch (term->conf->cursor.unfocused_style) { - case CURSOR_UNFOCUSED_UNCHANGED: - break; + if (unlikely(!term->kbd_focus)) { + switch (term->conf->cursor.unfocused_style) { + case CURSOR_UNFOCUSED_UNCHANGED: + break; - case CURSOR_UNFOCUSED_HOLLOW: - draw_hollow_block(term, pix, &cursor_color, x, y, cols); - return; + case CURSOR_UNFOCUSED_HOLLOW: + draw_hollow_block(term, pix, &cursor_color, x, y, cols); + return; - case CURSOR_UNFOCUSED_NONE: - return; - } + case CURSOR_UNFOCUSED_NONE: + return; } + } + switch (term->cursor_style) { + case CURSOR_BLOCK: if (likely(term->cursor_blink.state == CURSOR_BLINK_ON) || !term->kbd_focus) { |
