mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
x11: don't need to ref gl context in window any more
This is now managed by the client application
This commit is contained in:
parent
5f59bf25be
commit
35351a97b4
@ -61,7 +61,6 @@ pub(crate) struct XWindowInner {
|
|||||||
cursors: CursorInfo,
|
cursors: CursorInfo,
|
||||||
copy_and_paste: CopyAndPaste,
|
copy_and_paste: CopyAndPaste,
|
||||||
config: ConfigHandle,
|
config: ConfigHandle,
|
||||||
gl_state: Option<Rc<glium::backend::Context>>,
|
|
||||||
resize_promises: Vec<Promise<Dimensions>>,
|
resize_promises: Vec<Promise<Dimensions>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +113,6 @@ impl XWindowInner {
|
|||||||
)?)
|
)?)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
self.gl_state.replace(gl_state.clone());
|
|
||||||
Ok(gl_state)
|
Ok(gl_state)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -736,7 +734,6 @@ impl XWindow {
|
|||||||
dpi: conn.default_dpi(),
|
dpi: conn.default_dpi(),
|
||||||
copy_and_paste: CopyAndPaste::default(),
|
copy_and_paste: CopyAndPaste::default(),
|
||||||
cursors: CursorInfo::new(&conn),
|
cursors: CursorInfo::new(&conn),
|
||||||
gl_state: None,
|
|
||||||
config: config.clone(),
|
config: config.clone(),
|
||||||
resize_promises: vec![],
|
resize_promises: vec![],
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user