drivers/inputd: Remove some leftover code from the old way display resizing was handled

This commit is contained in:
bjorn3
2026-03-21 13:45:17 +01:00
parent afa6b64104
commit 05ca76bf59
5 changed files with 1 additions and 51 deletions
+1 -2
View File
@@ -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)]
-27
View File
@@ -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,
}