inputd: Remove deactivate event

It is no longer useful now that virtio-gpud permanently takes over
control of the display when it starts.
This commit is contained in:
bjorn3
2025-03-01 20:00:29 +01:00
parent 4f2268bbfe
commit fe31bd0578
3 changed files with 0 additions and 19 deletions
-5
View File
@@ -96,11 +96,6 @@ impl<T: GraphicsAdapter> GraphicsScheme<T> {
}
}
VtEventKind::Deactivate => {
log::info!("deactivate {}", vt_event.vt);
// nothing to do :)
}
VtEventKind::Resize => {
log::warn!("driver-graphics: resize is not implemented yet")
}
-1
View File
@@ -118,7 +118,6 @@ impl ControlHandle {
#[repr(usize)]
pub enum VtEventKind {
Activate,
Deactivate,
Resize,
}
-13
View File
@@ -120,19 +120,6 @@ impl InputScheme {
device,
..
} => {
if let Some(active_vt) = self.active_vt {
if &self.vts[&active_vt].display == &*device {
pending.push(VtEvent {
kind: VtEventKind::Deactivate,
vt: self.active_vt.unwrap(),
width: 0,
height: 0,
stride: 0,
});
*notified = false;
}
}
if &self.vts[&new_active].display == &*device {
pending.push(VtEvent {
kind: VtEventKind::Activate,