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/button.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/button.cc')
-rw-r--r-- | plugingui/button.cc | 5 |
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; |