From fb3a36b9aaaeb3922ddcf631778e6a0fcb7a64a0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Sep 2025 22:49:07 +0530 Subject: [PATCH] Render in layers when cursor trail is active Fixes incorrect light cursor trail colors due to sRGB blending when rendering without layers. --- kitty/child-monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 60fb26a1c..aaefc50ff 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -737,6 +737,7 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int * *all_windows_have_same_bg = true; *num_visible_windows = 0; color_type first_window_bg = 0; + os_window->needs_layers = os_window->needs_layers || (OPT(cursor_trail) && tab->cursor_trail.needs_render); for (unsigned int i = 0; i < tab->num_windows; i++) { Window *w = tab->windows + i; #define WD w->render_data