diff options
-rw-r--r-- | Xwt.XamMac/Xwt.Mac/DialogBackend.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/DialogBackend.cs b/Xwt.XamMac/Xwt.Mac/DialogBackend.cs index effc9372..f98d52c1 100644 --- a/Xwt.XamMac/Xwt.Mac/DialogBackend.cs +++ b/Xwt.XamMac/Xwt.Mac/DialogBackend.cs @@ -174,6 +174,10 @@ namespace Xwt.Mac nsParent = NSApplication.SharedApplication.ModalWindow ?? NSApplication.SharedApplication.KeyWindow; } + // Next, make this window key before adding it as a child. + // This matches behavior in MonoDevelop.Ide.MessageService.RunCustomDialog. + MakeKeyAndOrderFront(NSApplication.SharedApplication); + if (nsParent != null && nsParent.IsVisible) { nsParent.AddChildWindow(this, NSWindowOrderingMode.Above); |