mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 05:29:23 +00:00
Fixed: a CPPopover were closed when a click was made in another CPPlatformWindow
This commit is contained in:
1 parent
9798b9fd50
commit
769b379a8b
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user