Skip to content

macOS: recover UI after sleep using NSWorkspace wake notifications#284

Open
Farcimin wants to merge 2 commits intofeather-wallet:masterfrom
Farcimin:fix-macos-wake-recover
Open

macOS: recover UI after sleep using NSWorkspace wake notifications#284
Farcimin wants to merge 2 commits intofeather-wallet:masterfrom
Farcimin:fix-macos-wake-recover

Conversation

@Farcimin
Copy link

Problem

On macOS after a long sleep, Feather may hang with a spinning cursor when clicked from the tray and never show a window. Force quit + relaunch is required.

Repro

  1. Launch Feather on macOS.
  2. Put the system to sleep for a long period.
  3. Wake the system and click the Feather tray icon.
  4. The app becomes unresponsive; no window appears.

Fix

Subscribe to native macOS sleep/wake notifications (NSWorkspaceWillSleep/DidWake) via a small Objective-C++ observer and trigger UI recovery on wake. This avoids heuristics and ensures recovery runs only on actual wake events.

Notes

  • macOS-only; no changes to other platforms.
  • Workaround for tray/UI not resuming correctly after sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant