Fixed: a CPPopover were closed when a click was made in another CPPlatformWindow

This commit is contained in:
Alexandre Wilhelm committed 2015-04-07 17:39:35 -07:00
1 parent 9798b9fd50
commit 769b379a8b
1 file changed
+1 -1
+1 -1
View File
@@ -715,7 +715,7 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4,
// Consider clicks in child windows to be "inside". This keeps a transient popover from
// closing if e.g. the window containing the menu of a token field is clicked.
if (mouseWindow === self || [mouseWindow _hasAncestorWindow:self] || ![self _hasOnlyTransientChild:self])
if (mouseWindow === self || [mouseWindow _hasAncestorWindow:self] || ![self _hasOnlyTransientChild:self] || [mouseWindow platformWindow] != [self platformWindow])
{
[self _trapNextMouseDown];
}