Skip to content

Commit

Permalink
(baconpaul) make RMB click on wavetable work
Browse files Browse the repository at this point in the history
ripped from 
@baconpaul fix from 14a6001 [formerly d404bdd] (fixes surge-synthesizer#29)

Former-commit-id: b865d8e
  • Loading branch information
esaruoho authored Dec 15, 2018
1 parent 847902c commit 93aab5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/gui/COscillatorDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93aab5d

Please sign in to comment.