From 716cff08fba96dd7b06ff1d908679ab23c4d565c Mon Sep 17 00:00:00 2001 From: Ryan Hanson Date: Tue, 14 Jan 2020 17:15:25 +0100 Subject: [PATCH] Fixed spelling error --- Rectangle/AccessibilityElement.swift | 8 ++++---- Rectangle/WindowManager.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Rectangle/AccessibilityElement.swift b/Rectangle/AccessibilityElement.swift index 70ad00f25..72b9bd384 100644 --- a/Rectangle/AccessibilityElement.swift +++ b/Rectangle/AccessibilityElement.swift @@ -64,16 +64,16 @@ class AccessibilityElement { set(size: rect.size) } - func isResizeable() -> Bool { - var resizeable: DarwinBoolean = true - let status = AXUIElementIsAttributeSettable(self.underlyingElement, kAXSizeAttribute as CFString, &resizeable) + func isResizable() -> Bool { + var resizable: DarwinBoolean = true + let status = AXUIElementIsAttributeSettable(self.underlyingElement, kAXSizeAttribute as CFString, &resizable) if status != .success { if Logger.logging { Logger.log("Unable to determine if window is resizeable. Assuming it is.") } } - return resizeable.boolValue + return resizable.boolValue } static func normalizeCoordinatesOf(_ rect: CGRect, frameOfScreen: CGRect) -> CGRect { diff --git a/Rectangle/WindowManager.swift b/Rectangle/WindowManager.swift index 17ff4cc46..2322f1c32 100644 --- a/Rectangle/WindowManager.swift +++ b/Rectangle/WindowManager.swift @@ -104,7 +104,7 @@ class WindowManager { let visibleFrameOfDestinationScreen = NSRectToCGRect(calcResult.screen.visibleFrame) - let windowMoverChain = frontmostWindowElement.isResizeable() + let windowMoverChain = frontmostWindowElement.isResizable() ? standardWindowMoverChain : fixedSizeWindowMoverChain