-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix: When the program is minimized, the viewport stops working. #4487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this thoroughly with test_viewports
?
let mut glutin = self.glutin.borrow_mut(); | ||
let original_viewport = &glutin.viewports[&viewport_id]; | ||
|
||
// This will only happens when a Immediate Viewport. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead comment?
return EventResult::Wait; | ||
}; | ||
|
||
// This will only happens when a Immediate Viewport. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// This will only happens when a Immediate Viewport. |
Yes, I tested it for a long time on Windows 10 |
Fix: When the program is minimized, the viewport stops working.