summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc5
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;