Dismiss the popup after mouse tracking done. This is for the cases when mouse up event occurs outside of popup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21643 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2005-08-16 23:22:38 +00:00
parent f00ec3ca2b
commit e251c37762

View file

@ -694,6 +694,13 @@ static NSImage *_pbc_image[2];
clickCount: [theEvent clickCount]
pressure: [theEvent pressure]];
[NSApp sendEvent: e];
// End of mouse tracking here -- dismiss popup
// No synchronization needed here
if ([[_menu window] isVisible])
{
[self dismissPopUp];
}
return NO;
}