summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index 5270658..7c1e005 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -46,6 +46,11 @@ Button::~Button()
void Button::buttonEvent(ButtonEvent* buttonEvent)
{
+ // Ignore everything except left clicks.
+ if (buttonEvent->button != MouseButton::left) {
+ return;
+ }
+
if(buttonEvent->direction == Direction::down)
{
draw_state = down;