mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
do visibility match when inherit position history
This commit is contained in:
parent
1a13cf8b11
commit
34c0dbd0cf
1 changed files with 5 additions and 0 deletions
|
@ -1426,6 +1426,11 @@ namespace PersistentWindows.Common
|
|||
if (!procName.Equals(appPos.ProcessName))
|
||||
continue;
|
||||
|
||||
if (IsMinimized(hwnd) != appPos.IsMinimized)
|
||||
continue;
|
||||
if (User32.IsWindowVisible(hwnd) == appPos.IsInvisible)
|
||||
continue;
|
||||
|
||||
RECT r = appPos.ScreenPosition;
|
||||
RECT rect = new RECT();
|
||||
User32.GetWindowRect(hwnd, ref rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue