mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
winit: Don't remove output on CloseRequested
More winit events can process after CloseRequested, which will cause a panic if trying to access the now-removed output.
This commit is contained in:
@@ -107,10 +107,7 @@ impl Winit {
|
||||
WinitEvent::Redraw => state
|
||||
.niri
|
||||
.queue_redraw(state.backend.winit().output.clone()),
|
||||
WinitEvent::CloseRequested => {
|
||||
state.niri.stop_signal.stop();
|
||||
state.niri.remove_output(&state.backend.winit().output);
|
||||
}
|
||||
WinitEvent::CloseRequested => state.niri.stop_signal.stop(),
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user