inputd: Remove the active vt check before post_fevent

No input is added to pending anyway when the vt for the consumer isn't
the active vt anyway.
This commit is contained in:
bjorn3
2025-03-02 14:07:39 +01:00
parent e5af02928e
commit 9779d1884e
+1 -9
View File
@@ -560,7 +560,7 @@ fn deamon(deamon: redox_daemon::Daemon) -> anyhow::Result<()> {
pending,
needs_handoff,
ref mut notified,
vt,
..
} => {
if (!*needs_handoff && pending.is_empty())
|| *notified
@@ -569,14 +569,6 @@ fn deamon(deamon: redox_daemon::Daemon) -> anyhow::Result<()> {
continue;
}
let active_vt = scheme.active_vt.unwrap();
// The activate VT is not the same as the VT that the consumer is listening to
// for events.
if !*needs_handoff && active_vt != *vt {
continue;
}
// Notify the consumer that we have some events to read. Yum yum.
socket_file.post_fevent(*id, EventFlags::EVENT_READ.bits())?;