diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-24 09:41:43 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-25 04:07:59 -0800 |
| commit | 4c22c3285d8b10fbcef1c45a0788c3ddca03ec62 (patch) | |
| tree | 506174fe9962a91598ac25d4d2dee1cdaa3d5292 /src/ipc | |
| parent | 93cee2994ab9ccf59a09f61d5b8acf6cd937d654 (diff) | |
| download | niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.tar.gz niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.tar.bz2 niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.zip | |
Refactor animation timing to use lazy clocks
Diffstat (limited to 'src/ipc')
| -rw-r--r-- | src/ipc/server.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipc/server.rs b/src/ipc/server.rs index 16cc5524..facb59d3 100644 --- a/src/ipc/server.rs +++ b/src/ipc/server.rs @@ -314,6 +314,9 @@ async fn process(ctx: &ClientCtx, request: Request) -> Reply { let action = niri_config::Action::from(action); ctx.event_loop.insert_idle(move |state| { + // Make sure some logic like workspace clean-up has a chance to run before doing + // actions. + state.niri.advance_animations(); state.do_action(action, false); let _ = tx.send_blocking(()); }); |
