mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-27 03:56:33 +11:00
On Windows, fixed focus event emission on minimize.
This commit is contained in:
parent
48b843e42d
commit
25b129362f
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On Windows, fixed focus event emission on minimize.
|
||||||
- On MacOS, made `accepts_first_mouse` configurable.
|
- On MacOS, made `accepts_first_mouse` configurable.
|
||||||
- Migrated `WindowBuilderExtUnix::with_resize_increments` to `WindowBuilder`.
|
- Migrated `WindowBuilderExtUnix::with_resize_increments` to `WindowBuilder`.
|
||||||
- Added `Window::resize_increments`/`Window::set_resize_increments` to update resize increments at runtime for X11/macOS.
|
- Added `Window::resize_increments`/`Window::set_resize_increments` to update resize increments at runtime for X11/macOS.
|
||||||
|
|
|
@ -1901,7 +1901,7 @@ unsafe fn public_window_callback_inner<T: 'static>(
|
||||||
}
|
}
|
||||||
|
|
||||||
WM_NCACTIVATE => {
|
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);
|
let active_focus_changed = userdata.window_state_lock().set_active(is_active);
|
||||||
if active_focus_changed {
|
if active_focus_changed {
|
||||||
if is_active {
|
if is_active {
|
||||||
|
|
Loading…
Add table
Reference in a new issue