refactor: fixed security.yml and improved play/pause
Code Quality / quality-checks (push) Has been cancelled
Security Scan / security-audit (push) Has been cancelled

- New `--media-pause-icon` option
- Unified play/pause button action
- Move MPRIS lookup to spawn_blocking
- Speed up security CI with cargo-binstall
This commit is contained in:
2026-04-11 12:55:45 +02:00
parent 37fb09c7c6
commit 05593e0959
5 changed files with 121 additions and 74 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ impl PointerHandler for WaylandLock {
for (action, rx, ry, rw, rh) in &surface.renderer.media_rects {
if x >= *rx && x <= rx + rw && y >= *ry && y <= ry + rh {
match action.as_str() {
"play" => self.system_manager.media_play_pause(),
"play_pause" => self.system_manager.media_play_pause(),
"stop" => self.system_manager.media_stop(),
"next" => self.system_manager.media_next(),
"prev" => self.system_manager.media_prev(),