Skip to content

Commit

Permalink
Merge pull request #2236 from AkiSakurai/NoAddChildWindow
Browse files Browse the repository at this point in the history
Do not add child window to parent when the child window is in the TabbedWindows of parent
  • Loading branch information
cwensley authored Jun 30, 2023
2 parents 0ba43c5 + 3586d64 commit 6a3e075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eto.Mac/Forms/MacWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ bool InternalSetOwner(Window owner)
if (owner != null)
{
var macWindow = owner.Handler as IMacWindow;
if (macWindow != null)
if (macWindow != null && macWindow.Control.TabbedWindows?.Contains(Control) != true)
{
macWindow.Control.AddChildWindow(Control, NSWindowOrderingMode.Above);
OnSetAsChildWindow();
Expand Down

0 comments on commit 6a3e075

Please sign in to comment.