Skip to content

Commit

Permalink
🔀 Merge pull request #576 from `MrKai77/mrkai77/loop-636-crash-when-m…
Browse files Browse the repository at this point in the history
…inimizing-or-hiding-an-app-with-an-keybind`
  • Loading branch information
MrKai77 authored Sep 28, 2024
2 parents cbabeb6 + e2e39cb commit 51f9362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Loop/Window Management/WindowAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ struct WindowAction: Codable, Identifiable, Hashable, Equatable, Defaults.Serial
}

func getFrame(window: Window?, bounds: CGRect, disablePadding: Bool = false, screen: NSScreen? = nil, isPreview: Bool = false) -> CGRect {
guard direction != .cycle, direction != .noAction else {
let noFrameActions: [WindowDirection] = [.noAction, .cycle, .minimize, .hide]
guard !noFrameActions.contains(direction) else {
return NSRect(origin: bounds.center, size: .zero)
}

Expand Down

0 comments on commit 51f9362

Please sign in to comment.