aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/main.rs b/src/main.rs
index 2403a20d..66616c7b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -111,19 +111,6 @@ fn main() {
}
event_loop
- .run(None, &mut state, move |state| {
- let _span = tracy_client::span!("loop callback");
-
- // These should be called periodically, before flushing the clients.
- state.niri.layout.refresh();
- state.niri.refresh_pointer_outputs();
- state.niri.popups.cleanup();
- state.update_focus();
-
- {
- let _span = tracy_client::span!("flush_clients");
- state.niri.display_handle.flush_clients().unwrap();
- }
- })
+ .run(None, &mut state, |state| state.refresh_and_flush_clients())
.unwrap();
}