mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
On macOS, Fix set_simple_screen to remember frame excluding title bar (#1430)
* On macOS, Fix `set_simple_screen` to remember frame excluding title bar * Add CHANGELOG
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On macOS, fix `set_simple_screen` to remember frame excluding title bar.
|
||||||
- On Wayland, fix coordinates in touch events when scale factor isn't 1.
|
- On Wayland, fix coordinates in touch events when scale factor isn't 1.
|
||||||
- On Wayland, fix color from `close_button_icon_color` not applying.
|
- On Wayland, fix color from `close_button_icon_color` not applying.
|
||||||
- Ignore locale if unsupported by X11 backend
|
- Ignore locale if unsupported by X11 backend
|
||||||
|
|||||||
@@ -1028,7 +1028,11 @@ impl WindowExtMacOS for UnownedWindow {
|
|||||||
|
|
||||||
if fullscreen {
|
if fullscreen {
|
||||||
// Remember the original window's settings
|
// Remember the original window's settings
|
||||||
shared_state_lock.standard_frame = Some(NSWindow::frame(*self.ns_window));
|
// Exclude title bar
|
||||||
|
shared_state_lock.standard_frame = Some(NSWindow::contentRectForFrameRect_(
|
||||||
|
*self.ns_window,
|
||||||
|
NSWindow::frame(*self.ns_window),
|
||||||
|
));
|
||||||
shared_state_lock.saved_style = Some(self.ns_window.styleMask());
|
shared_state_lock.saved_style = Some(self.ns_window.styleMask());
|
||||||
shared_state_lock.save_presentation_opts = Some(app.presentationOptions_());
|
shared_state_lock.save_presentation_opts = Some(app.presentationOptions_());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user