autocommit 2022-03-13 22:20:31 CET
This commit is contained in:
parent
156bd5b042
commit
a15a02a95c
38 changed files with 63 additions and 66 deletions
|
|
@ -11,7 +11,6 @@ use crate::ErrorFmt;
|
|||
use bstr::ByteSlice;
|
||||
use std::cell::Cell;
|
||||
use std::rc::Rc;
|
||||
use std::time::Instant;
|
||||
use uapi::{c, OwnedFd};
|
||||
|
||||
const DRM: &[u8] = b"drm";
|
||||
|
|
@ -91,7 +90,6 @@ impl MetalBackend {
|
|||
}
|
||||
|
||||
fn handle_input_device_resume(self: &Rc<Self>, dev: &Rc<MetalInputDevice>, fd: Rc<OwnedFd>) {
|
||||
let start = Instant::now();
|
||||
log::info!("Device resumed: {}", dev.devnode.to_bytes().as_bstr());
|
||||
if let Some(old) = dev.fd.set(Some(fd)) {
|
||||
self.state.fdcloser.close(old);
|
||||
|
|
@ -100,7 +98,6 @@ impl MetalBackend {
|
|||
Ok(d) => d,
|
||||
Err(_) => return,
|
||||
};
|
||||
log::info!("took {:?}", start.elapsed());
|
||||
inputdev.device().set_slot(dev.slot);
|
||||
dev.inputdev.set(Some(inputdev));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -847,7 +847,7 @@ impl MetalBackend {
|
|||
mode.hdisplay as _,
|
||||
mode.vdisplay as _,
|
||||
)?)
|
||||
},
|
||||
}
|
||||
};
|
||||
changes.change_object(primary_plane.id, |c| {
|
||||
c.change(primary_plane.fb_id, buffers[0].drm.id().0 as _);
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ impl XorgBackend {
|
|||
images,
|
||||
});
|
||||
{
|
||||
let class = "i4\0i4\0";
|
||||
let class = "jay\0jay\0";
|
||||
let cookie = con.xcb.xcb_change_property_checked(
|
||||
con.c,
|
||||
ffi::XCB_PROP_MODE_REPLACE as _,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue