-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Opening the window system menu or right clicking the title bar freezes the event loop #1484
Comments
This fixes a panic. Note that the WM_PAINT event is now sent to the modal_redraw_method which is more correct and avoids an unecessary redraw of the window. Relates to but does does not fix rust-windowing#1484
This fixes a panic. Note that the WM_PAINT event is now sent to the modal_redraw_method which is more correct and avoids an unecessary redraw of the window. Relates to but does does not fix rust-windowing#1484
Related: #894 |
@aloucks Yep. In this PR the event loop will freeze:
|
This fixes a panic. Note that the WM_PAINT event is now sent to the modal_redraw_method which is more correct and avoids an unecessary redraw of the window. Relates to but does does not fix rust-windowing#1484
I think this was closed by accident:
|
Issue is still there. Please reopen this issue. |
Ping |
I was hoping that #1496 would fix this, but it actually seems to make it worse - with that, the event loop doesn't resume until the window gets resized. I'll take a look at figuring out why that happens. |
I'm pretty sure this is related to #894. |
We can detect when we enter this frozen state via This works for example while retaining a working context menu: winuser::WM_ENTERIDLE => {
let mut message: MSG = zeroed();
while PeekMessageW(
&mut message as *mut MSG,
window_handle,
0,
0,
PM_NOREMOVE,
) == 0
{
fire_event(MainEventsCleared);
}
SUCCESS
} This doesn't cover the other cases where freezes happen, but this is definitely one of them. |
|
No description provided.
The text was updated successfully, but these errors were encountered: