Skip to content

Commit b296726

Browse files
authored
Merge pull request #835 from JakeStanger/fix/keys-cpu
fix(keys): high cpu usage
2 parents 0b4d868 + e0bae2c commit b296726

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/clients/libinput.rs

+3
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ impl Client {
217217
_ => {}
218218
}
219219
}
220+
221+
// we need to sleep for a short period to avoid hogging cpu
222+
std::thread::sleep(Duration::from_millis(20));
220223
}
221224
}
222225

0 commit comments

Comments
 (0)