|
Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / macos (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
strawberry-tray did a one-shot QSystemTrayIcon::isSystemTrayAvailable() check at startup and, if no StatusNotifier host was up yet, permanently fell back to window-only mode (never creating the tray icon). Under sway the app is usually `exec`ed before waybar registers its tray module, so the indicator never showed even after waybar came up. - main.cpp no longer disables the tray on that one-shot check; it keeps the tray and logs a hint. - AppController::start(): if the tray host isn't available yet, retry every 1.5 s; when it appears, hide()+show() the icon to (re)register with the host. Only if no host shows up within ~15 s does it fall back to opening the window. Verified live on sway: with waybar up, the fixed binary registers a StatusNotifierItem (icon visible); the retry covers the start-before-waybar case. Suite 51/51; clang static analyzer clean on the changed app TUs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| tests | ||
| app_controller.cpp | ||
| app_controller.hpp | ||
| autostart.cpp | ||
| autostart.hpp | ||
| daemon_client.cpp | ||
| daemon_client.hpp | ||
| main.cpp | ||
| main_window.cpp | ||
| main_window.hpp | ||
| main_window_policy.cpp | ||
| meson.build | ||
| notifier.cpp | ||
| notifier.hpp | ||
| notifier_tray.cpp | ||
| tray.cpp | ||
| tray.hpp | ||
| tray_state.cpp | ||
| tray_state.hpp | ||