Restore paused tray overlay

This commit is contained in:
2026-09-12 16:24:23 +02:00
parent f35badd2ae
commit b9a273bede
2 changed files with 9 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ Each bounded iteration must:
GTK/X11/package build, 2026-09-12).
- [ ] Verify tray activation/menu behavior and graceful tray unavailability.
- [x] Make the global shortcut and second-instance show request toggle the popup reliably without a delayed focus result reopening it (28 X11-feature tests and Docker GTK/X11/package build, 2026-09-12); live GUI acceptance remains pending.
- [x] Use a standard theme icon for the live tray service so development runs do not depend on the custom icon being installed (Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending.
- [x] Use a standard theme icon for the live tray service and expose a standard pause overlay while recording is paused (Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending.
- [x] Keep cloned tray handles from shutting down the shared D-Bus service prematurely by making shutdown ownership reference-counted (D-Bus audit found the previous service disappeared after GTK activation; 28 tests and Docker GTK/X11/package build, 2026-09-12); live tray acceptance remains pending.
- [x] Make `--diagnostics` inspect the running installation without triggering a
show request, and report the log directory plus instance state (20 tests and

View File

@@ -43,6 +43,14 @@ impl ksni::Tray for CliphoardTray {
"edit-paste".into()
}
fn overlay_icon_name(&self) -> String {
if self.recording.load(Ordering::Acquire) {
String::new()
} else {
"media-playback-pause".into()
}
}
fn activate(&mut self, _x: i32, _y: i32) {
if let Err(error) = InstanceGuard::signal_show() {
tracing::error!(%error, "failed to show popup from tray icon");