Skip to content

Commit

Permalink
Merge pull request #835 from JakeStanger/fix/keys-cpu
Browse files Browse the repository at this point in the history
fix(keys): high cpu usage
  • Loading branch information
JakeStanger authored Jan 6, 2025
2 parents 0b4d868 + e0bae2c commit b296726
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/clients/libinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ impl Client {
_ => {}
}
}

// we need to sleep for a short period to avoid hogging cpu
std::thread::sleep(Duration::from_millis(20));
}
}

Expand Down

0 comments on commit b296726

Please sign in to comment.