diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index f0083ae4..d259b4a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,11 +33,12 @@ pub struct LoopData { niri: Niri, display_handle: DisplayHandle, - // Last so that it's dropped after the Smithay state in Niri. - display: Display<Niri>, - tty: Option<Tty>, winit: Option<Winit>, + + // Last so that it's dropped after the Smithay state in Niri and related state in Tty. + // Otherwise it will segfault on quit. + display: Display<Niri>, } fn main() { |
