mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Fix some more unconstrained types in msg_send results (#453)
The error I was investigating https://github.com/servo/servo/pull/20474#issuecomment-379802897 turned out to be already be fixed by https://github.com/tomaka/winit/pull/428, but there was a few more cases of the same problem.
This commit is contained in:
parent
4005bf11e4
commit
e36fd1788d
|
@ -1,6 +1,7 @@
|
|||
# Unreleased
|
||||
|
||||
- Overhauled X11 window geometry calculations. `get_position` and `set_position` are more universally accurate across different window managers, and `get_outer_size` actually works now.
|
||||
- Fixed SIGSEGV/SIGILL crashes on macOS caused by stabilization of the `!` (never) type.
|
||||
|
||||
# Version 0.12.0 (2018-04-06)
|
||||
|
||||
|
|
|
@ -470,13 +470,13 @@ impl Window2 {
|
|||
}
|
||||
if pl_attrs.titlebar_buttons_hidden {
|
||||
let button = window.standardWindowButton_(NSWindowButton::NSWindowFullScreenButton);
|
||||
msg_send![button, setHidden:YES];
|
||||
let () = msg_send![button, setHidden:YES];
|
||||
let button = window.standardWindowButton_(NSWindowButton::NSWindowMiniaturizeButton);
|
||||
msg_send![button, setHidden:YES];
|
||||
let () = msg_send![button, setHidden:YES];
|
||||
let button = window.standardWindowButton_(NSWindowButton::NSWindowCloseButton);
|
||||
msg_send![button, setHidden:YES];
|
||||
let () = msg_send![button, setHidden:YES];
|
||||
let button = window.standardWindowButton_(NSWindowButton::NSWindowZoomButton);
|
||||
msg_send![button, setHidden:YES];
|
||||
let () = msg_send![button, setHidden:YES];
|
||||
}
|
||||
if pl_attrs.movable_by_window_background {
|
||||
window.setMovableByWindowBackground_(YES);
|
||||
|
|
Loading…
Reference in a new issue