CtrlLib: Fixed MacOS context menu

git-svn-id: svn://ultimatepp.org/upp/trunk@13601 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-09-13 15:36:56 +00:00
parent e2be6096d3
commit cd8ebef36d

View file

@ -129,7 +129,10 @@ void CocoMenuBar::MenuAction(id sender)
for(const Item& m : item)
if(m.nsitem == sender) {
ResetCocoaMouse();
PostCallback(m.cb);
if(GetParent()) // If not context menu use PostCallback to avoid visual glitches
PostCallback(m.cb);
else
m.cb();
break;
}
}