From e731e232b994296625820c4a21e7c986ba54bb01 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Mar 2013 03:09:37 +0000 Subject: 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 --- src/gui/GraphCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/GraphCanvas.cpp') 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; -- cgit v1.2.1