From 8f5b63a691cd00a9aac991a0aa76c002576d8b95 Mon Sep 17 00:00:00 2001 From: Evan Dorsky Date: Fri, 28 Oct 2022 09:38:30 -0700 Subject: [PATCH] Don't follow thrown window if set to not follow --- Amethyst/Managers/WindowManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Amethyst/Managers/WindowManager.swift b/Amethyst/Managers/WindowManager.swift index 314f5875..c0d622d7 100644 --- a/Amethyst/Managers/WindowManager.swift +++ b/Amethyst/Managers/WindowManager.swift @@ -659,7 +659,9 @@ extension WindowManager: WindowTransitionTarget { let newFrame = targetScreen.frameWithoutDockOrMenu() window.setFrame(newFrame, withThreshold: CGSize(width: 25, height: 25)) markScreen(targetScreen, forReflowWithChange: .add(window: window)) - window.focus() + if UserConfiguration.shared.followWindowsThrownBetweenSpaces() { + window.focus() + } case .resetFocus: if let screen = screens.screenManagers.first?.screen { executeTransition(.focusScreen(screen))