diff options
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index bbde8100..fafac68d 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -139,10 +139,12 @@ Port::on_event(GdkEvent* ev) { switch (ev->type) { case GDK_BUTTON_PRESS: - _pressed = true; + if (ev->button.button == 1) + _pressed = true; break; case GDK_BUTTON_RELEASE: - _pressed = false; + if (ev->button.button == 1) + _pressed = false; default: break; } |