Notch stays hidden on another desktop after leaving a fullscreen app

Aperta
#49 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, swift
Ambito
backend, desktop

Direzione di ricerca

Start with NotchPanel.swift around line 71 and NotchController.swift around line 63, then reproduce the reported sequence across two Spaces while logging panel.isVisible and foreground?.hides(display:) on each switch. Trace how the active Space notification updates panel visibility. Done when the notch appears on a Space with no fullscreen app after leaving fullscreen on another Space.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs-triage

What happened

  1. Using an app in fullscreen. The notch hides (expected, "Hide in fullscreen" is on).
  2. Exit fullscreen back to a normal window. The notch comes back (expected).
  3. Switch to another desktop (Space) where the apps are in normal windows.
  4. The notch is not showing there. It should be.

Expected

The notch shows on any Space where no fullscreen app covers the display.

Suspected cause (not confirmed)

NotchPanel.setHidden(true) calls panel.orderOut(nil), and the panel uses .canJoinAllSpaces (NotchPanel.swift:71). After the hide and show cycle, the panel may not be on the other Space's window list. NotchController re-checks on activeSpaceDidChangeNotification (NotchController.swift:63), but setHidden(false) only calls orderFrontRegardless() when !panel.isVisible, so it may skip the re-show if isVisible is stale.

To check

  • Reproduce with two Spaces: one with a fullscreen app, one with normal windows.
  • Log panel.isVisible and foreground?.hides(display:) on each Space switch.
Lingua principale
Swift
Stelle
1
Fork
1
Merge medio
14m
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thecharydev/catnotch

Tutte le issue di thecharydev/catnotch

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.