mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Fix continuous redraw when disable_ligatures set to cursor and tab bar visible
Fixes #9071
This commit is contained in:
@@ -725,6 +725,9 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int *
|
||||
call_boss(update_tab_bar_data, "K", os_window->id);
|
||||
os_window->tab_bar_data_updated = true;
|
||||
}
|
||||
// we never render a cursor in the tab bar
|
||||
CursorRenderInfo *cri = &TD.screen->cursor_render_info;
|
||||
zero_at_ptr(cri); cri->x = TD.screen->cursor->x; cri->y = TD.screen->cursor->y;
|
||||
if (send_cell_data_to_gpu(TD.vao_idx, TD.screen, os_window)) needs_render = true;
|
||||
os_window->needs_layers = os_window->needs_layers || screen_needs_rendering_in_layers(os_window, NULL, TD.screen);
|
||||
}
|
||||
@@ -888,7 +891,7 @@ render_os_window(OSWindow *w, monotonic_t now, bool scan_for_animated_images) {
|
||||
|
||||
static void
|
||||
render(monotonic_t now, bool input_read) {
|
||||
EVDBG("input_read: %d, check_for_active_animated_images: %d", input_read, global_state.check_for_active_animated_images);
|
||||
EVDBG("input_read: %d, check_for_active_animated_images: %d\n", input_read, global_state.check_for_active_animated_images);
|
||||
static monotonic_t last_render_at = MONOTONIC_T_MIN;
|
||||
monotonic_t time_since_last_render = last_render_at == MONOTONIC_T_MIN ? OPT(repaint_delay) : now - last_render_at;
|
||||
if (!input_read && time_since_last_render < OPT(repaint_delay)) {
|
||||
|
||||
@@ -436,7 +436,7 @@ has_bgimage(OSWindow *w) {
|
||||
}
|
||||
|
||||
static color_type
|
||||
cell_update_uniform_block(ssize_t vao_idx, Screen *screen, int uniform_buffer, CursorRenderInfo *cursor, OSWindow *os_window, float inactive_text_alpha, float bg_alpha) {
|
||||
cell_update_uniform_block(ssize_t vao_idx, Screen *screen, int uniform_buffer, const CursorRenderInfo *cursor, OSWindow *os_window, float inactive_text_alpha, float bg_alpha) {
|
||||
struct GPUCellRenderData {
|
||||
GLfloat use_cell_bg_for_selection_fg, use_cell_fg_for_selection_color, use_cell_for_selection_bg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user