xwayland: don't transmute setup data to 'static
This commit is contained in:
parent
555bd0a1bc
commit
498e01a8bb
3 changed files with 8 additions and 12 deletions
|
|
@ -161,7 +161,7 @@ pub async fn create(state: &Rc<State>) -> Result<Rc<XBackend>, XBackendError> {
|
|||
{
|
||||
return Err(XBackendError::EnableXkb(e));
|
||||
}
|
||||
let root = c.setup().screens[0].root;
|
||||
let root = c.root_window();
|
||||
let drm = {
|
||||
let res = c
|
||||
.call(&Dri3Open {
|
||||
|
|
@ -215,7 +215,7 @@ pub async fn create(state: &Rc<State>) -> Result<Rc<XBackend>, XBackendError> {
|
|||
};
|
||||
{
|
||||
let se = XiSelectEvents {
|
||||
window: c.setup().screens[0].root,
|
||||
window: c.root_window(),
|
||||
masks: Cow::Borrowed(&[XiEventMask {
|
||||
deviceid: INPUT_DEVICE_ALL,
|
||||
mask: &[XI_EVENT_MASK_HIERARCHY],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue