mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 12:50:04 -04:00
On Windows, fixed focus event emission on minimize.
This commit is contained in:
@@ -8,6 +8,8 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||
|
||||
# Unreleased
|
||||
|
||||
- On Windows, fixed focus event emission on minimize.
|
||||
|
||||
# 0.27.3 (2022-9-10)
|
||||
|
||||
- On Windows, added `WindowExtWindows::set_undecorated_shadow` and `WindowBuilderExtWindows::with_undecorated_shadow` to draw the drop shadow behind a borderless window.
|
||||
|
||||
@@ -1900,7 +1900,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