Skip to content

Commit

Permalink
Fixed spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hanson committed Jan 14, 2020
1 parent 6c71ab3 commit 716cff0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Rectangle/AccessibilityElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Rectangle/WindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class WindowManager {

let visibleFrameOfDestinationScreen = NSRectToCGRect(calcResult.screen.visibleFrame)

let windowMoverChain = frontmostWindowElement.isResizeable()
let windowMoverChain = frontmostWindowElement.isResizable()
? standardWindowMoverChain
: fixedSizeWindowMoverChain

Expand Down

0 comments on commit 716cff0

Please sign in to comment.