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:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -118,7 +118,6 @@ impl ControlHandle {
|
||||
#[repr(usize)]
|
||||
pub enum VtEventKind {
|
||||
Activate,
|
||||
Deactivate,
|
||||
Resize,
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user