fix: firefox fullscreen videos are not listed (closes #360)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-05-29 01:29:19 +09:00
1 parent 797ed42220
commit ce63367b82
1 file changed
+5 -2
+5 -2
View File
@@ -57,9 +57,12 @@ extension AXUIElement {
// don't show floating windows
isOnNormalLevel(wid!) &&
(["AXStandardWindow", "AXDialog"].contains(subrole()) ||
// All Steam windows have subrole = AXUnknown
// All Steam windows have subrole == AXUnknown
// some dropdown menus are not desirable; they have title == "", or sometimes role == nil when switching between menus quickly
(bundleIdentifier == "com.valvesoftware.steam" && title() != "" && role() != nil))
(bundleIdentifier == "com.valvesoftware.steam" && title() != "" && role() != nil) ||
// Firefox fullscreen video have subrole == AXUnknown if fullscreen'ed when the base window is not fullscreen
(bundleIdentifier == "org.mozilla.firefox" && role() == "AXWindow")
)
}
func isOnNormalLevel(_ wid: CGWindowID) -> Bool {