Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fixed 截图时有时会被其他已截好的图盖住
Browse files Browse the repository at this point in the history
  • Loading branch information
tylearymf committed Sep 16, 2019
1 parent c1cd284 commit 9266740
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: System.Runtime.InteropServices.Guid("4483e561-8b3e-427d-98a4-e0e821b7bf2f")]
[assembly: System.Reflection.AssemblyConfiguration("")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.4")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.5")]
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)]

2 changes: 1 addition & 1 deletion SETUNA/Main/CaptureForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public CaptureForm(SetunaOption.SetunaOptionData opt)
selArea.ShowInTaskbar = false;
selArea.SizeGripStyle = SizeGripStyle.Hide;
selArea.StartPosition = FormStartPosition.Manual;
selArea.Text = "CaptureSelArea";
selArea.Text = typeof(CaptureForm).Name;
selArea.TopMost = true;
selArea.Left = 0;
selArea.Top = 0;
Expand Down
3 changes: 3 additions & 0 deletions SETUNA/Main/Other/LayerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public void Update()
var tTopModuleName = WindowsAPI.GetModuleName(tTopHandler);
var tTopClassName = WindowsAPI.GetClassName(tTopHandler);

//当前正在截图
if (!string.IsNullOrEmpty(tTopTitle) && tTopTitle == typeof(CaptureForm).Name) return;

//过滤其他截图工具
if (!string.IsNullOrEmpty(tTopClassName) && mIgnoreClassNames.Contains(tTopClassName))
{
Expand Down

0 comments on commit 9266740

Please sign in to comment.