protected override void OnHandleMessageRecived(object sender, MessageArgs args) { if (args.Message.Action != Action.Show || ApplicationCurrent.MainWindow == null) { return; } if (MonoDevelop.Core.Platform.IsMac) { GtkWorkarounds.GrabDesktopFocus(); } ApplicationCurrent.MainWindow.Present(); }
internal void Show(string title) { this.RootWindow.Title = title; this.RootWindow.Realize(); this.RootWindow.ShowAll(); this.RootWindow.Show(); this.RootWindow.CurrentLayout = "DefaultLayout"; if (MonoDevelop.Core.Platform.IsMac) { GtkWorkarounds.GrabDesktopFocus(); } this.RootWindow.Present(); this.monitors.Initialize(); }