diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-23 14:16:36 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-23 15:45:44 +0400 |
| commit | f3f02aca2058dd7adc4d75707ded2b5d8887a258 (patch) | |
| tree | ff5fdc1a81a5270f0f52a609c9f70a3afd79cf80 /src/backend/tty.rs | |
| parent | 021a2a1af771421e39a990bb1eac624e0ef274de (diff) | |
| download | niri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.tar.gz niri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.tar.bz2 niri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.zip | |
Lift output clones from queue_redraw()
Diffstat (limited to 'src/backend/tty.rs')
| -rw-r--r-- | src/backend/tty.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index fdf25df8..83315662 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -884,7 +884,7 @@ impl Tty { // Power on all monitors if necessary and queue a redraw on the new one. niri.event_loop.insert_idle(move |state| { state.niri.activate_monitors(&mut state.backend); - state.niri.queue_redraw(output); + state.niri.queue_redraw(&output); }); Ok(()) @@ -1067,7 +1067,7 @@ impl Tty { .non_continuous_frame(surface.vblank_frame_name); surface.vblank_frame = Some(vblank_frame); - niri.queue_redraw(output); + niri.queue_redraw(&output); } else { niri.send_frame_callbacks(&output); } @@ -1100,7 +1100,7 @@ impl Tty { } if output_state.unfinished_animations_remain { - niri.queue_redraw(output); + niri.queue_redraw(&output); } else { niri.send_frame_callbacks(&output); } @@ -1538,7 +1538,7 @@ impl Tty { output.change_current_state(Some(wl_mode), None, None, None); output.set_preferred(wl_mode); output_state.frame_clock = FrameClock::new(Some(refresh_interval(mode))); - niri.output_resized(output); + niri.output_resized(&output); } for (connector, crtc) in device.drm_scanner.crtcs() { |
