mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: minor style changes
This commit is contained in:
@ -78,12 +78,15 @@ class TerminalManager {
|
|||||||
window.toggleFullScreen(nil)
|
window.toggleFullScreen(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
// We're dispatching this async because otherwise the last-cascade-point won't work.
|
// We're dispatching this async because otherwise the lastCascadePoint doesn't
|
||||||
|
// take effect. Our best theory is there is some next-event-loop-tick logic
|
||||||
|
// that Cocoa is doing that we need to be after.
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
// Only cascade if we aren't fullscreen.
|
// Only cascade if we aren't fullscreen.
|
||||||
if (!window.styleMask.contains(.fullScreen)) {
|
if (!window.styleMask.contains(.fullScreen)) {
|
||||||
Self.lastCascadePoint = window.cascadeTopLeft(from: Self.lastCascadePoint)
|
Self.lastCascadePoint = window.cascadeTopLeft(from: Self.lastCascadePoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
c.showWindow(self)
|
c.showWindow(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user