diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-24 17:30:06 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-26 13:45:03 +0400 |
| commit | cd4f7c0378e7ce3ed14a1d1b1a1146c7a7ef33bf (patch) | |
| tree | e1f594fbcb7e747aee8bcd4dba5170b32212ae66 /src/handlers | |
| parent | c422fdab0fd19f61ee5ad73a46312d4284641f3c (diff) | |
| download | niri-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.rs | 8 |
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() { |
