mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
* macOS: fix subtle regression introduced in 0474dc986
* update changelog
This commit is contained in:
parent
7aeb2c083b
commit
5761fb6b30
|
@ -1,5 +1,6 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Fix regression of Window platform extensions for macOS where `NSFullSizeContentViewWindowMask` was not being correctly applied to `.fullsize_content_view`.
|
||||||
- Corrected `get_position` on Windows to be relative to the screen rather than to the taskbar.
|
- Corrected `get_position` on Windows to be relative to the screen rather than to the taskbar.
|
||||||
- Corrected `Moved` event on Windows to use position values equivalent to those returned by `get_position`. It previously supplied client area positions instead of window positions, and would additionally interpret negative values as being very large (around `u16::MAX`).
|
- Corrected `Moved` event on Windows to use position values equivalent to those returned by `get_position`. It previously supplied client area positions instead of window positions, and would additionally interpret negative values as being very large (around `u16::MAX`).
|
||||||
- Implemented `Moved` event on macOS.
|
- Implemented `Moved` event on macOS.
|
||||||
|
|
|
@ -661,8 +661,8 @@ impl Window2 {
|
||||||
let masks = if pl_attrs.titlebar_hidden {
|
let masks = if pl_attrs.titlebar_hidden {
|
||||||
NSWindowStyleMask::NSBorderlessWindowMask |
|
NSWindowStyleMask::NSBorderlessWindowMask |
|
||||||
NSWindowStyleMask::NSResizableWindowMask
|
NSWindowStyleMask::NSResizableWindowMask
|
||||||
} else if pl_attrs.titlebar_transparent {
|
} else if !pl_attrs.titlebar_transparent {
|
||||||
// Window2 with a transparent titlebar and regular content view
|
// Window2 with a titlebar
|
||||||
NSWindowStyleMask::NSClosableWindowMask |
|
NSWindowStyleMask::NSClosableWindowMask |
|
||||||
NSWindowStyleMask::NSMiniaturizableWindowMask |
|
NSWindowStyleMask::NSMiniaturizableWindowMask |
|
||||||
NSWindowStyleMask::NSResizableWindowMask |
|
NSWindowStyleMask::NSResizableWindowMask |
|
||||||
|
@ -674,17 +674,15 @@ impl Window2 {
|
||||||
NSWindowStyleMask::NSResizableWindowMask |
|
NSWindowStyleMask::NSResizableWindowMask |
|
||||||
NSWindowStyleMask::NSTitledWindowMask |
|
NSWindowStyleMask::NSTitledWindowMask |
|
||||||
NSWindowStyleMask::NSFullSizeContentViewWindowMask
|
NSWindowStyleMask::NSFullSizeContentViewWindowMask
|
||||||
} else {
|
} else if !attrs.decorations && !screen.is_some() {
|
||||||
if !attrs.decorations && !screen.is_some() {
|
|
||||||
// Window2 without a titlebar
|
// Window2 without a titlebar
|
||||||
NSWindowStyleMask::NSBorderlessWindowMask
|
NSWindowStyleMask::NSBorderlessWindowMask
|
||||||
} else {
|
} else {
|
||||||
// Window2 with a titlebar
|
// Window2 with a transparent titlebar and regular content view
|
||||||
NSWindowStyleMask::NSClosableWindowMask |
|
NSWindowStyleMask::NSClosableWindowMask |
|
||||||
NSWindowStyleMask::NSMiniaturizableWindowMask |
|
NSWindowStyleMask::NSMiniaturizableWindowMask |
|
||||||
NSWindowStyleMask::NSResizableWindowMask |
|
NSWindowStyleMask::NSResizableWindowMask |
|
||||||
NSWindowStyleMask::NSTitledWindowMask
|
NSWindowStyleMask::NSTitledWindowMask
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let winit_window = Class::get("WinitWindow").unwrap_or_else(|| {
|
let winit_window = Class::get("WinitWindow").unwrap_or_else(|| {
|
||||||
|
|
Loading…
Reference in a new issue