diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs index 5c4436bd..5235066b 100644 --- a/src/input.rs +++ b/src/input.rs @@ -320,10 +320,10 @@ impl RelaxedEq for ModifiersState { // Make sure that modifiers in the config are always present, // but ignore surplus modifiers. fn relaxed_eq(&self, other: Self) -> bool { - !((self.shift && !other.shift) - || (self.ctrl && !other.ctrl) - || (self.alt && !other.alt) - || (self.logo && !other.logo)) + (!self.logo || other.logo) + && (!self.alt || other.alt) + && (!self.ctrl || other.ctrl) + && (!self.shift || other.shift) } } |