mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-20 23:51:40 +01:00
feat(windows): backend() accessor for the daemon
A static WindowsBackend behind backend() -> &'static dyn Backend, the way KDE spells it. Nothing calls it yet; the next revisions switch call sites one cluster at a time (docs/dev/backend-switch.md). Not a behaviour change. Verified: Windows clippy -D warnings via tools/fast-check PASS.
This commit is contained in:
1 parent
0a2562b9cf
commit
07f931d6cb
1 file changed
+9
@@ -241,3 +241,12 @@ impl Backend for WindowsBackend {
|
||||
)))
|
||||
}
|
||||
}
|
||||
|
||||
static BACKEND: WindowsBackend = WindowsBackend;
|
||||
|
||||
/// The backend the daemon calls, like `backend()` on KDE. Stateless, so one static serves every
|
||||
/// thread. Call sites are being switched to it one cluster at a time: see
|
||||
/// `docs/dev/backend-switch.md` for which are.
|
||||
pub fn backend() -> &'static dyn Backend {
|
||||
&BACKEND
|
||||
}
|
||||
Reference in new issue
Block a user