aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index d259b4a0..d89dcab1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -105,9 +105,16 @@ fn main() {
event_loop
.run(None, &mut data, move |data| {
- // niri is running.
- let _span = tracy_client::span!("flush_clients");
- data.display.flush_clients().unwrap();
+ let _span = tracy_client::span!("loop callback");
+
+ // These should be called periodically, before flushing the clients.
+ data.niri.space.refresh();
+ data.niri.popups.cleanup();
+
+ {
+ let _span = tracy_client::span!("flush_clients");
+ data.display.flush_clients().unwrap();
+ }
})
.unwrap();
}