Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9470 from mono/fix-1027840
Browse files Browse the repository at this point in the history
Fix dialog parenting issue
  • Loading branch information
slluis authored Dec 13, 2019
2 parents 1da95c7 + ec9cad7 commit 5ceba5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/src/addins/MacPlatform/MacPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,8 @@ public override Window GetParentForModalWindow ()
bool HasAnyDockWindowFocused ()
{
foreach (var window in Gtk.Window.ListToplevels ()) {
if (!window.HasToplevelFocus) {
// Gtk.Window.HasToplevelFocus may return false for a window that embeds a Cocoa view
if (!window.HasToplevelFocus && GtkQuartz.GetWindow (window) != NSApplication.SharedApplication.KeyWindow) {
continue;
}
if (window is Components.Docking.DockFloatingWindow floatingWindow) {
Expand Down

0 comments on commit 5ceba5a

Please sign in to comment.