Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Loop/Window Management/WindowEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ enum WindowEngine {
let windowTitle = window.nsRunningApplication?.localizedName ?? window.title ?? "<unknown>"
print("Resizing \(windowTitle) to \(action.direction) on \(screen.localizedName)")

// Note that this is only really useful when "Resize window under cursor" is enabled
if Defaults[.focusWindowOnResize] {
window.activate()
}

// If the action is to hide or minimize, perform the action then return
if action.direction == .hide {
window.toggleHidden()
Expand All @@ -43,6 +38,11 @@ enum WindowEngine {
return
}

// Note that this is only really useful when "Resize window under cursor" is enabled
if Defaults[.focusWindowOnResize] {
window.activate()
}

if shouldRecord {
WindowRecords.record(window, action)
}
Expand Down