feat: implement fullstate on-connect event
This commit is contained in:
parent
05e12ea2f2
commit
73813605d6
4 changed files with 66 additions and 14 deletions
|
@ -21,13 +21,14 @@ fn main() -> Result<()> {
|
|||
smol::spawn(ipc::ipc_provider(ipc_tx)).detach();
|
||||
// spawn socket listener for events
|
||||
let (event_tx, event_rx) = smol::channel::unbounded();
|
||||
smol::spawn(ipc::event_provider(event_rx)).detach();
|
||||
let (fullstate_tx, fullstate_rx) = smol::channel::unbounded();
|
||||
smol::spawn(ipc::event_provider(event_rx, fullstate_tx)).detach();
|
||||
// begin managing niri tags
|
||||
smol::block_on(async {
|
||||
let niri_tag = manager::NiriTag::new(event_tx)
|
||||
.await
|
||||
.context("Initialising niri tag manager")
|
||||
.unwrap();
|
||||
niri_tag.manage_tags(niri_rx, ipc_rx).await
|
||||
niri_tag.manage_tags(niri_rx, ipc_rx, fullstate_rx).await
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue