mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
If client rectangle same size as window size then don't add it
This commit is contained in:
parent
8bdd46be1d
commit
a3bd391ebc
1 changed files with 1 additions and 7 deletions
|
@ -28,7 +28,6 @@ You should have received a copy of the GNU General Public License
|
|||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
|
@ -83,11 +82,6 @@ public List<SimpleWindowInfo> GetWindowInfoList()
|
|||
{
|
||||
if (window2.Rectangle.Contains(window.Rectangle))
|
||||
{
|
||||
if (window.IsWindow && window.Rectangle == window2.Rectangle)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
rectVisible = false;
|
||||
break;
|
||||
}
|
||||
|
@ -148,7 +142,7 @@ private bool CheckHandle(IntPtr handle, bool isWindow)
|
|||
{
|
||||
Rectangle clientRect = NativeMethods.GetClientRect(handle);
|
||||
|
||||
if (clientRect.IsValid())
|
||||
if (clientRect.IsValid() && clientRect != windowInfo.Rectangle)
|
||||
{
|
||||
windows.Add(new SimpleWindowInfo(handle, clientRect));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue