mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +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
71f0fa6cf9
commit
5210413a1d
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…
Add table
Add a link
Reference in a new issue