mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
f00ec3ca2b
commit
e251c37762
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue