mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +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]
|
clickCount: [theEvent clickCount]
|
||||||
pressure: [theEvent pressure]];
|
pressure: [theEvent pressure]];
|
||||||
[NSApp sendEvent: e];
|
[NSApp sendEvent: e];
|
||||||
|
|
||||||
|
// End of mouse tracking here -- dismiss popup
|
||||||
|
// No synchronization needed here
|
||||||
|
if ([[_menu window] isVisible])
|
||||||
|
{
|
||||||
|
[self dismissPopUp];
|
||||||
|
}
|
||||||
|
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue