Some fixed for not getting windows to focus/to front which were inspired by FEATURE-992. [skip ci]

This commit is contained in:
Robin 2016-12-30 22:35:28 +01:00
commit 5a1a4737ec
8 changed files with 51 additions and 9 deletions

View file

@ -152,7 +152,8 @@ namespace GreenshotPlugin.Core {
var menu = new ContextMenuStrip
{
ImageScalingSize = CoreConfig.IconSize,
Tag = null
Tag = null,
TopLevel = true
};
menu.Closing += delegate(object source, ToolStripDropDownClosingEventArgs eventArgs) {

View file

@ -1256,7 +1256,6 @@ namespace GreenshotPlugin.Core {
/// </summary>
public static void ToForeground(IntPtr handle)
{
// Do nothing if the window is already in the foreground
if (User32.GetForegroundWindow() == handle)
{