Render in layers when cursor trail is active

Fixes incorrect light cursor trail colors due to sRGB blending when
rendering without layers.
This commit is contained in:
Kovid Goyal 2025-09-29 22:49:07 +05:30
parent a8e930c167
commit fb3a36b9aa
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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