summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/option.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/option.cpp b/src/option.cpp
index c2b6cee..a301e7d 100644
--- a/src/option.cpp
+++ b/src/option.cpp
@@ -770,12 +770,14 @@ CompOption::set (CompOption::Value &val)
return false;
case CompOption::TypeKey:
- if (!(val.action ().type () & CompAction::BindingTypeKey))
+ if (val.action ().type () == value().action ().type () &&
+ !(val.action ().type () & CompAction::BindingTypeKey))
return false;
break;
case CompOption::TypeButton:
- if (!(val.action ().type () & (CompAction::BindingTypeButton |
+ if (val.action ().type () == value().action ().type () &&
+ !(val.action ().type () & (CompAction::BindingTypeButton |
CompAction::BindingTypeEdgeButton)))
return false;
break;