We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8425f13 commit 9e7df57Copy full SHA for 9e7df57
src/input/composite_device/mod.rs
@@ -1238,7 +1238,11 @@ impl CompositeDevice {
1238
1239
/// Sets the intercept mode to the given value
1240
async fn set_intercept_mode(&mut self, mode: InterceptMode) {
1241
- log::debug!("Setting intercept mode to: {:?}", mode);
+ log::debug!("Setting intercept mode to: {mode:?}");
1242
+ if self.intercept_mode == mode {
1243
+ log::debug!("Intercept is already set to: {mode:?}");
1244
+ return;
1245
+ }
1246
self.intercept_mode = mode;
1247
1248
// Nothing else is required when turning off input interception.
0 commit comments