File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
OverlayWindow/Sources/OverlayWindow Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,19 @@ private extension OverlayWindowController {
5656 withPerceptionTracking {
5757 _ = XcodeInspector . shared. focusedWindow
5858 _ = XcodeInspector . shared. activeXcode
59+ _ = XcodeInspector . shared. activeApplication
5960 } onChange: { [ weak self] in
6061 guard let self else { return }
6162 Task { @MainActor in
6263 defer { self . observeWindowChange ( ) }
6364
65+ guard XcodeInspector . shared. activeApplication? . isXcode ?? false else {
66+ for (_, controller) in self . ideWindowOverlayWindowControllers {
67+ controller. dim ( )
68+ }
69+ return
70+ }
71+
6472 guard let app = XcodeInspector . shared. activeXcode else {
6573 for (_, controller) in self . ideWindowOverlayWindowControllers {
6674 controller. hide ( )
You can’t perform that action at this time.
0 commit comments