fix: show vlc fullscreen video (closes #792)
This commit is contained in:
1 parent
8d3063adfd
commit
e675fab31c
1 file changed
+6
@@ -92,6 +92,7 @@ extension AXUIElement {
|
|||||||
worldOfWarcraft(runningApp, role) ||
|
worldOfWarcraft(runningApp, role) ||
|
||||||
battleNetBootstrapper(runningApp, role) ||
|
battleNetBootstrapper(runningApp, role) ||
|
||||||
firefoxFullscreenVideo(runningApp, role) ||
|
firefoxFullscreenVideo(runningApp, role) ||
|
||||||
|
vlcFullscreenVideo(runningApp, role) ||
|
||||||
androidEmulator(runningApp, title) ||
|
androidEmulator(runningApp, title) ||
|
||||||
sanGuoShaAirWD(runningApp) ||
|
sanGuoShaAirWD(runningApp) ||
|
||||||
dvdFab(runningApp) ||
|
dvdFab(runningApp) ||
|
||||||
@@ -150,6 +151,11 @@ extension AXUIElement {
|
|||||||
return (runningApp.bundleIdentifier?.hasPrefix("org.mozilla.firefox") ?? false) && role == kAXWindowRole
|
return (runningApp.bundleIdentifier?.hasPrefix("org.mozilla.firefox") ?? false) && role == kAXWindowRole
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func vlcFullscreenVideo(_ runningApp: NSRunningApplication, _ role: String?) -> Bool {
|
||||||
|
// VLC fullscreen video have subrole == AXUnknown if fullscreen'ed
|
||||||
|
return (runningApp.bundleIdentifier?.hasPrefix("org.videolan.vlc") ?? false) && role == kAXWindowRole
|
||||||
|
}
|
||||||
|
|
||||||
private func androidEmulator(_ runningApp: NSRunningApplication, _ title: String?) -> Bool {
|
private func androidEmulator(_ runningApp: NSRunningApplication, _ title: String?) -> Bool {
|
||||||
// android emulator small vertical menu is a "window" with empty title; we exclude it
|
// android emulator small vertical menu is a "window" with empty title; we exclude it
|
||||||
return title != "" && Applications.isAndroidEmulator(runningApp)
|
return title != "" && Applications.isAndroidEmulator(runningApp)
|
||||||
|
|||||||
Reference in new issue
Block a user