Skip to content

fix: pause rendering while editor is unfocused - #392

Open
dajiaohuang wants to merge 1 commit into
3rd:masterfrom
dajiaohuang:task/focus-rendering
Open

dajiaohuang wants to merge 1 commit into
3rd:masterfrom
dajiaohuang:task/focus-rendering

Conversation

@dajiaohuang

Copy link
Copy Markdown

Fixes #386.

Image:render() can be called from integration, resize, and scheduled redraw paths that do not all pass through the decoration-provider check. Gate rendering on a shared paused state, pause immediately on focus loss, and restore images on focus gain. A generation counter prevents an older scheduled focus-loss callback from overriding a rapid focus regain.

Validation: the targeted focus-rendering regression passed. The full Busted suite was not run locally because busted is unavailable; CI is pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

editor_only_render_when_focused still renders images while nvim is unfocused

1 participant