From 9779d1884eb8e3390763f9faad4dfc6b84c0899a Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 2 Mar 2025 14:07:39 +0100 Subject: [PATCH] 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. --- inputd/src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/inputd/src/main.rs b/inputd/src/main.rs index 218da3c62f..0667fca53e 100644 --- a/inputd/src/main.rs +++ b/inputd/src/main.rs @@ -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())?;