handle paused_rendering state

This commit is contained in:
Rick Choi
2024-10-16 08:03:12 +09:00
parent aafc083219
commit bf7f0ebc46

View File

@@ -40,7 +40,8 @@ update_cursor_trail(CursorTrail *ct, Window *w, monotonic_t now, OSWindow *os_wi
bool needs_render_prev = ct->needs_render;
ct->needs_render = false;
if (!get_cursor_edge(&ct->cursor_edge_x[0], &ct->cursor_edge_x[1],
if (!WD.screen->paused_rendering.expires_at &&
!get_cursor_edge(&ct->cursor_edge_x[0], &ct->cursor_edge_x[1],
&ct->cursor_edge_y[0], &ct->cursor_edge_y[1], w)) {
return needs_render_prev;
}