wayland: use arc-swap over Mutex for FOCUSED_APP for better concurrency

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id6b40d5c533c35dda5bce7b852b836f26a6a6964
This commit is contained in:
raf 2026-03-27 08:39:49 +03:00
commit fe86356399
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 21 additions and 11 deletions

View file

@ -14,6 +14,7 @@ name = "stash" # actual binary name for Nix, Cargo, etc.
path = "src/main.rs"
[dependencies]
arc-swap = { version = "1.9.0", optional = true }
base64 = "0.22.1"
blocking = "1.6.2"
clap = { version = "4.6.0", features = [ "derive", "env" ] }
@ -50,7 +51,7 @@ tempfile = "3.27.0"
[features]
default = [ "notifications", "use-toplevel" ]
notifications = [ "dep:notify-rust" ]
use-toplevel = [ "dep:wayland-client", "dep:wayland-protocols-wlr" ]
use-toplevel = [ "dep:arc-swap", "dep:wayland-client", "dep:wayland-protocols-wlr" ]
[profile.release]
lto = true