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:
+1
-9
@@ -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())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user