From 93aab5d330609a3c061e954abcf112f2924f29a5 Mon Sep 17 00:00:00 2001 From: Esa Juhani Ruoho Date: Sat, 15 Dec 2018 18:53:39 +0200 Subject: [PATCH] (baconpaul) make RMB click on wavetable work ripped from @baconpaul fix from https://github.com/baconpaul/surge/commit/14a600171b1243e29ce805cf62d6b3fbbb881b82 [formerly d404bdd04b9660a904e793ba85ecd75c5d5129f6] (fixes #29) Former-commit-id: b865d8e9ee45323b1858a324af53e01ae3d18b7f --- src/common/gui/COscillatorDisplay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/gui/COscillatorDisplay.cpp b/src/common/gui/COscillatorDisplay.cpp index 0110d217522..821a4f0799f 100644 --- a/src/common/gui/COscillatorDisplay.cpp +++ b/src/common/gui/COscillatorDisplay.cpp @@ -287,8 +287,9 @@ CMouseEventResult COscillatorDisplay::onMouseDown(CPoint& where, const CButtonSt } getFrame()->addView(contextMenu); // add to frame - contextMenu->setDirty(); - contextMenu->onMouseDown(where, kLButton); // <-- modal menu loop is here + contextMenu->setDirty(); + contextMenu->popup(); + contextMenu->onMouseDown(where, kLButton); // <-- modal menu loop is here // getFrame()->looseFocus(pContext); getFrame()->removeView(contextMenu, true); // remove from frame and forget