diff --git a/src/Main/ICSharpCode.Core.Presentation/ExtendedPopup.cs b/src/Main/ICSharpCode.Core.Presentation/ExtendedPopup.cs index e2f284004b..3dd4e3d793 100644 --- a/src/Main/ICSharpCode.Core.Presentation/ExtendedPopup.cs +++ b/src/Main/ICSharpCode.Core.Presentation/ExtendedPopup.cs @@ -10,7 +10,7 @@ using System.Windows.Interop; namespace ICSharpCode.Core.Presentation { /// - /// Extends WPF popup to prevent it from being the topmost window on the screen. + /// Extends WPF popup to hide the popup while SharpDevelop isn't the active application. /// public class ExtendedPopup : Popup { @@ -19,7 +19,7 @@ namespace ICSharpCode.Core.Presentation protected override void OnOpened(EventArgs e) { hwnd = ((HwndSource)PresentationSource.FromVisual(Child)).Handle; - SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, NoChangeFlags); + SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, NoChangeFlags); Application.Current.Activated += ApplicationActivated; Application.Current.Deactivated += ApplicationDeactivated;