drivers/inputd: Remove some leftover code from the old way display resizing was handled
This commit is contained in:
@@ -165,7 +165,7 @@ impl DisplayHandle {
|
||||
|
||||
pub fn read_vt_event(&mut self) -> io::Result<Option<VtEvent>> {
|
||||
let mut event = VtEvent {
|
||||
kind: VtEventKind::Resize,
|
||||
kind: VtEventKind::Activate,
|
||||
vt: usize::MAX,
|
||||
width: u32::MAX,
|
||||
height: u32::MAX,
|
||||
@@ -212,7 +212,6 @@ impl ControlHandle {
|
||||
#[repr(usize)]
|
||||
pub enum VtEventKind {
|
||||
Activate,
|
||||
Resize,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -443,33 +443,6 @@ impl SchemeSync for InputScheme {
|
||||
}
|
||||
},
|
||||
|
||||
EventOption::Resize(resize_event) => {
|
||||
for handle in self.handles.values_mut() {
|
||||
match handle {
|
||||
Handle::Display {
|
||||
pending,
|
||||
notified,
|
||||
device,
|
||||
..
|
||||
} => {
|
||||
if self.display.as_ref() == Some(device) {
|
||||
pending.push(VtEvent {
|
||||
kind: VtEventKind::Resize,
|
||||
vt: self.active_vt.unwrap(),
|
||||
width: resize_event.width,
|
||||
height: resize_event.height,
|
||||
|
||||
// TODO(andypython): Figure out how to get the stride.
|
||||
stride: resize_event.width,
|
||||
});
|
||||
*notified = false;
|
||||
}
|
||||
}
|
||||
_ => continue,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_ => continue,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user