Also make dock-less mode work

This commit is contained in:
AuroraWright
2024-03-01 17:05:18 +01:00
parent 7eba9235ef
commit 0e4d369a9c

View File

@@ -182,7 +182,7 @@ class MacOSWindowTracker(threading.Thread):
break break
if self.window_id == window['kCGWindowNumber']: if self.window_id == window['kCGWindowNumber']:
found = True found = True
if window_list[i-1].get(kCGWindowName, '') == 'Dock': if i == 0 or window_list[i-1].get(kCGWindowName, '') in ('Dock', 'Color Enforcer Window'):
is_active = True is_active = True
break break
if not found: if not found: