mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
[dual pos switch] use first diff pos as background match
This commit is contained in:
parent
3d2ed7395c
commit
3a473bdc10
1 changed files with 8 additions and 0 deletions
|
@ -2648,6 +2648,14 @@ namespace PersistentWindows.Common
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!toForeground)
|
||||
{
|
||||
RECT screenPosition = new RECT();
|
||||
User32.GetWindowRect(hwnd, ref screenPosition);
|
||||
if (screenPosition.Equals(metrics.ScreenPosition))
|
||||
continue;
|
||||
}
|
||||
|
||||
IntPtr prevZwnd = metrics.PrevZorderWindow;
|
||||
if (prevZwnd != front_hwnd && (prevZwnd == IntPtr.Zero || prevZwnd != firstBackgroundWindow))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue