feat: help support broken fl studio app (closes #2174)
This commit is contained in:
1 parent
8b9b0b4fcb
commit
4f26bc20a0
1 file changed
+6
-1
@@ -84,7 +84,7 @@ extension AXUIElement {
|
|||||||
|
|
||||||
// Some non-windows have cgWindowId == 0 (e.g. windows of apps starting at login with the checkbox "Hidden" checked)
|
// Some non-windows have cgWindowId == 0 (e.g. windows of apps starting at login with the checkbox "Hidden" checked)
|
||||||
return wid != 0 && size != nil &&
|
return wid != 0 && size != nil &&
|
||||||
(books(runningApp) || keynote(runningApp) || iina(runningApp) || (
|
(books(runningApp) || keynote(runningApp) || iina(runningApp) || openFlStudio(runningApp, title) || (
|
||||||
// CGWindowLevel == .normalWindow helps filter out iStats Pro and other top-level pop-overs, and floating windows
|
// CGWindowLevel == .normalWindow helps filter out iStats Pro and other top-level pop-overs, and floating windows
|
||||||
level == CGWindow.normalLevel &&
|
level == CGWindow.normalLevel &&
|
||||||
([kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||
|
([kAXStandardWindowSubrole, kAXDialogSubrole].contains(subrole) ||
|
||||||
@@ -128,6 +128,11 @@ extension AXUIElement {
|
|||||||
return runningApp.bundleIdentifier == "com.apple.iWork.Keynote"
|
return runningApp.bundleIdentifier == "com.apple.iWork.Keynote"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static func openFlStudio(_ runningApp: NSRunningApplication, _ title: String?) -> Bool {
|
||||||
|
// OpenBoard is a ported app which doesn't use standard macOS windows
|
||||||
|
return runningApp.bundleIdentifier == "com.image-line.flstudio" && (title != nil && title != "")
|
||||||
|
}
|
||||||
|
|
||||||
private static func openBoard(_ runningApp: NSRunningApplication) -> Bool {
|
private static func openBoard(_ runningApp: NSRunningApplication) -> Bool {
|
||||||
// OpenBoard is a ported app which doesn't use standard macOS windows
|
// OpenBoard is a ported app which doesn't use standard macOS windows
|
||||||
return runningApp.bundleIdentifier == "org.oe-f.OpenBoard"
|
return runningApp.bundleIdentifier == "org.oe-f.OpenBoard"
|
||||||
|
|||||||
Reference in new issue
Block a user