diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
commit | 2cf71ffbfda49bc3791490f4d035897bb35298f8 (patch) | |
tree | 1ed15f0d94f3e10f1b379d51f49f4528cc9df7c6 /plugingui/checkbox.cc | |
parent | 7baaa737216080d7ddbeb7d92e53f6078dfd4d3a (diff) |
Ignore all clicks except left clicks in all the widgets.
Of course, we want to change this as soon as we actually want to
use right and middle clicks. But this is not the case atm.
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r-- | plugingui/checkbox.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc index a218d44..4f71e54 100644 --- a/plugingui/checkbox.cc +++ b/plugingui/checkbox.cc @@ -41,6 +41,11 @@ CheckBox::CheckBox(Widget* parent) void CheckBox::buttonEvent(ButtonEvent* buttonEvent) { + // Ignore everything except left clicks. + if (buttonEvent->button != MouseButton::left) { + return; + } + if((buttonEvent->direction == Direction::up) || buttonEvent->doubleClick) { buttonDown = false; |