mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Make sure Display is dropped last
This commit is contained in:
+4
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user