From 5a1c8ffefb888ed518dd1e8cd04eeb4d9cbbf921 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 1 Feb 2013 17:06:32 +0000 Subject: [PATCH] Removed Firefox preview window from the capture list git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2454 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/WindowsHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GreenshotPlugin/Core/WindowsHelper.cs b/GreenshotPlugin/Core/WindowsHelper.cs index 13a66e11f..720faf557 100644 --- a/GreenshotPlugin/Core/WindowsHelper.cs +++ b/GreenshotPlugin/Core/WindowsHelper.cs @@ -1545,9 +1545,14 @@ namespace GreenshotPlugin.Core { if ((window.ExtendedWindowStyle & ExtendedWindowStyleFlags.WS_EX_TOOLWINDOW) != 0) { continue; } + // Skip preview windows, like the one from Firefox + if ((window.WindowStyle & WindowStyleFlags.WS_VISIBLE) == 0) { + continue; + } if (!window.Visible && !window.Iconic) { continue; } + LOG.DebugFormat("Text {0}", window.Text); windows.Add(window); } return windows;