summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-25 03:09:37 +0000
committerDavid Robillard <d@drobilla.net>2013-03-25 03:09:37 +0000
commite731e232b994296625820c4a21e7c986ba54bb01 (patch)
tree8045866c2c9fa816fbb2d970c28d2da0b58a51f6 /src
parent3d93d33c8a1245351473a58229055b40fce86db1 (diff)
downloadingen-e731e232b994296625820c4a21e7c986ba54bb01.tar.gz
ingen-e731e232b994296625820c4a21e7c986ba54bb01.tar.bz2
ingen-e731e232b994296625820c4a21e7c986ba54bb01.zip
Don't show menu if other buttons or modifiers are down (fix #890).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5103 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphCanvas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp
index 591c6fc9..c8eb8de6 100644
--- a/src/gui/GraphCanvas.cpp
+++ b/src/gui/GraphCanvas.cpp
@@ -577,7 +577,7 @@ GraphCanvas::on_event(GdkEvent* event)
switch (event->type) {
case GDK_BUTTON_PRESS:
- if (event->button.button == 3) {
+ if (!event->button.state && event->button.button == 3) {
_auto_position_count = 0;
_last_click_x = (int)event->button.x;
_last_click_y = (int)event->button.y;