Revert last change and implement a better solution.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37157 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
espectador 2013-09-27 04:33:30 +00:00
parent ecd8160ff7
commit 7baaaf9425
4 changed files with 14 additions and 27 deletions

View file

@ -1512,8 +1512,8 @@ static NSMapTable *viewInfo = 0;
over the menu, the menu is closed when the user releases the mouse. On
the other hand, when the user clicks on the button and then moves the
mouse the menu is closed upon the next mouse click. */
([[self menu] _ownedByPopUp] &&
style == NSMacintoshInterfaceStyle))
([[self menu] _ownedByPopUp] && (style == NSMacintoshInterfaceStyle ||
[[GSTheme theme] doesProcessEventsForPopUpMenu])))
{
/*
* Ignore the first mouse up if nothing interesting has happened.