diff --git a/Loop/Window Management/WindowAction.swift b/Loop/Window Management/WindowAction.swift index a2a79062..746d3e75 100644 --- a/Loop/Window Management/WindowAction.swift +++ b/Loop/Window Management/WindowAction.swift @@ -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) }