Skip to content

winit-win32: fix request_redraw can be ignored while the system popup menu is shown#4609

Open
rhysd wants to merge 1 commit into
rust-windowing:masterfrom
rhysd:issue-4608
Open

winit-win32: fix request_redraw can be ignored while the system popup menu is shown#4609
rhysd wants to merge 1 commit into
rust-windowing:masterfrom
rhysd:issue-4608

Conversation

@rhysd

@rhysd rhysd commented Jun 29, 2026

Copy link
Copy Markdown
Contributor
  • Tested on all platforms changed
    • I tested this branch with my app on Windows and confirmed the bug was fixed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

Fixes #4608

This PR makes winit event loop track the menu loop state. In the menu loop, redraw requests are kept pending. And the redraw is called when the menu loop exits (if some request is pending). This is necessary because redraw is ignored while the menu loop is active.

while the system popup is shown.
@rhysd rhysd changed the title winit-win32: fix redraw_requested can be ignored while the system popup is shown winit-win32: fix redraw_requested can be ignored while the system popup menu is shown Jun 29, 2026
@rhysd rhysd changed the title winit-win32: fix redraw_requested can be ignored while the system popup menu is shown winit-win32: fix request_redraw can be ignored while the system popup menu is shown Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

redraw_request is ignored while the system popup menu is shown

1 participant