/// <summary> /// Grab the desktop focus for the window. /// </summary> public virtual void GrabDesktopFocus (Gtk.Window window) { window.Present (); }
public override void GrabDesktopFocus (Gtk.Window window) { window.Present (); NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); }
/// <summary> /// Grab the desktop focus for the window. /// </summary> internal virtual void GrabDesktopFocus (Gtk.Window window) { if (Platform.IsWindows && window.IsRealized) { /* On Windows calling Present() will break out of window edge snapping mode. */ window.GdkWindow.Focus (0); window.GdkWindow.Raise (); } else { window.Present (); } }