mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
On Windows, fixed focus event emission on minimize.
This commit is contained in:
@@ -1901,7 +1901,7 @@ unsafe fn public_window_callback_inner<T: 'static>(
|
||||
}
|
||||
|
||||
WM_NCACTIVATE => {
|
||||
let is_active = wparam == 1;
|
||||
let is_active = wparam != false.into();
|
||||
let active_focus_changed = userdata.window_state_lock().set_active(is_active);
|
||||
if active_focus_changed {
|
||||
if is_active {
|
||||
|
||||
Reference in New Issue
Block a user