From c15f64764f10bad263b22cf9665fa92779879a42 Mon Sep 17 00:00:00 2001 From: Ryan Hanson Date: Sat, 27 Apr 2024 22:41:27 -0700 Subject: [PATCH] Added illustrator and after effects to list of apps that has issues with drag to snap. --- Rectangle/AppDelegate.swift | 6 +++++- Rectangle/Snapping/SnappingManager.swift | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Rectangle/AppDelegate.swift b/Rectangle/AppDelegate.swift index ae0b2523..4f54fcb3 100644 --- a/Rectangle/AppDelegate.swift +++ b/Rectangle/AppDelegate.swift @@ -146,7 +146,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { guard !Defaults.windowSnapping.userDisabled, !Defaults.notifiedOfProblemApps.enabled else { return } let problemBundleIds: [String] = [ - "com.mathworks.matlab", "com.live2d.cubism.CECubismEditorApp", "com.aquafold.datastudio.DataStudio" + "com.mathworks.matlab", + "com.live2d.cubism.CECubismEditorApp", + "com.aquafold.datastudio.DataStudio", + "com.adobe.illustrator", + "com.adobe.AfterEffects" ] // these apps are java based with dynamic bundleIds diff --git a/Rectangle/Snapping/SnappingManager.swift b/Rectangle/Snapping/SnappingManager.swift index 516c7b68..0d24963c 100644 --- a/Rectangle/Snapping/SnappingManager.swift +++ b/Rectangle/Snapping/SnappingManager.swift @@ -16,7 +16,12 @@ struct SnapArea: Equatable { class SnappingManager { - private let fullIgnoreIds: [String] = Defaults.fullIgnoreBundleIds.typedValue ?? ["com.install4j", "com.mathworks.matlab", "com.live2d.cubism.CECubismEditorApp", "com.aquafold.datastudio.DataStudio"] + private let fullIgnoreIds: [String] = Defaults.fullIgnoreBundleIds.typedValue ?? ["com.install4j", + "com.mathworks.matlab", + "com.live2d.cubism.CECubismEditorApp", + "com.aquafold.datastudio.DataStudio", + "com.adobe.illustrator", + "com.adobe.AfterEffects"] var eventMonitor: EventMonitor? var windowElement: AccessibilityElement?