aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-09-24 17:30:06 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:45:03 +0400
commitcd4f7c0378e7ce3ed14a1d1b1a1146c7a7ef33bf (patch)
treee1f594fbcb7e747aee8bcd4dba5170b32212ae66 /src/handlers
parentc422fdab0fd19f61ee5ad73a46312d4284641f3c (diff)
downloadniri-cd4f7c0378e7ce3ed14a1d1b1a1146c7a7ef33bf.tar.gz
niri-cd4f7c0378e7ce3ed14a1d1b1a1146c7a7ef33bf.tar.bz2
niri-cd4f7c0378e7ce3ed14a1d1b1a1146c7a7ef33bf.zip
Remove LoopData
The calloop Smithay update finally lets me do this.
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/compositor.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs
index 404f98a4..d6a70143 100644
--- a/src/handlers/compositor.rs
+++ b/src/handlers/compositor.rs
@@ -47,11 +47,11 @@ impl CompositorHandler for State {
let res = state
.niri
.event_loop
- .insert_source(source, move |_, _, data| {
- let display_handle = data.state.niri.display_handle.clone();
- data.state
+ .insert_source(source, move |_, _, state| {
+ let display_handle = state.niri.display_handle.clone();
+ state
.client_compositor_state(&client)
- .blocker_cleared(&mut data.state, &display_handle);
+ .blocker_cleared(state, &display_handle);
Ok(())
});
if res.is_ok() {