From 51d05774202d41c6909fb51dfbe583f340d7ae56 Mon Sep 17 00:00:00 2001 From: Gabriel Jordan Date: Tue, 17 Nov 2026 22:04:36 -0300 Subject: [PATCH] Keep the notch on screen when it hands back key focus Closing the panel hands key focus back by ordering the panel out and in again. Since that step waits for the close animation, the default panel animation made the notch fade out and back in, which shows while the live CI wings are visible. The panel now orders in and out without animating. --- CHANGELOG.md | 3 +++ Sources/Pullo/Features/Notch/NotchPanel.swift | 1 + Tests/PulloTests/NotchPanelTests.swift | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a90a61..8551b12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to Pullo are listed here, newest first. The format follows [ ## [Unreleased] +### Fixed +- While checks are running, the notch no longer disappears for a second after you move the pointer away from the open panel. + ## [0.11.4] - 2026-10-25 ### Changed diff --git a/Sources/Pullo/Features/Notch/NotchPanel.swift b/Sources/Pullo/Features/Notch/NotchPanel.swift index 8b84eb1..274c1fe 100644 --- a/Sources/Pullo/Features/Notch/NotchPanel.swift +++ b/Sources/Pullo/Features/Notch/NotchPanel.swift @@ -13,6 +13,7 @@ final class NotchPanel: NSPanel { isOpaque = false backgroundColor = .clear hasShadow = false + animationBehavior = .none level = NSWindow.Level(rawValue: NSWindow.Level.mainMenu.rawValue + 3) collectionBehavior = [.canJoinAllSpaces, .stationary, .fullScreenAuxiliary, .ignoresCycle] isMovable = false diff --git a/Tests/PulloTests/NotchPanelTests.swift b/Tests/PulloTests/NotchPanelTests.swift index e7ba13f..88ff394 100644 --- a/Tests/PulloTests/NotchPanelTests.swift +++ b/Tests/PulloTests/NotchPanelTests.swift @@ -9,4 +9,9 @@ struct NotchPanelTests { let panel = NotchPanel(rootView: EmptyView()) #expect(panel.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua) } + + @Test func showsAndHidesWithoutFading() { + let panel = NotchPanel(rootView: EmptyView()) + #expect(panel.animationBehavior == .none) + } }