File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1919 <key >CFBundleShortVersionString </key >
2020 <string >$(MARKETING_VERSION) </string >
2121 <key >CFBundleVersion </key >
22- <string >7029 </string >
22+ <string >7030 </string >
2323 <key >LSApplicationCategoryType </key >
2424 <string >public.app-category.utilities </string >
2525 <key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change @@ -399,13 +399,13 @@ class DisplayManager {
399399 }
400400
401401 static func isDummy( displayID: CGDirectDisplayID ) -> Bool {
402+ let vendorNumber = CGDisplayVendorNumber ( displayID)
402403 let rawName = DisplayManager . getDisplayRawNameByID ( displayID: displayID)
403- var isDummy : Bool = false
404- if rawName. lowercased ( ) . contains ( " dummy " ) {
404+ if rawName. lowercased ( ) . contains ( " dummy " ) || ( self . isVirtual ( displayID: displayID) && vendorNumber == UInt32 ( 0xF0F0 ) ) {
405405 os_log ( " NOTE: Display is a dummy! " , type: . info)
406- isDummy = true
406+ return true
407407 }
408- return isDummy
408+ return false
409409 }
410410
411411 static func isVirtual( displayID: CGDirectDisplayID ) -> Bool {
Original file line number Diff line number Diff line change 1919 <key >CFBundleShortVersionString </key >
2020 <string >$(MARKETING_VERSION) </string >
2121 <key >CFBundleVersion </key >
22- <string >7029 </string >
22+ <string >7030 </string >
2323 <key >LSApplicationCategoryType </key >
2424 <string >public.app-category.utilities </string >
2525 <key >LSBackgroundOnly </key >
You can’t perform that action at this time.
0 commit comments