Commit graph

23 commits

Author SHA1 Message Date
Kang Yu
eda1839e4a rename local var to emphasize current and previous value 2020-01-28 12:30:21 -08:00
Kang Yu
4bda3525db avoid taking invalid value in WindowPlacement by focusing only on normal position part 2020-01-28 01:00:39 -08:00
Kang Yu
52fed8b1c8 use process id to resolve hash key (hwnd) conflict 2020-01-27 20:26:20 -08:00
Kang Yu
fe4fd6f8d0 safe guard hash collision between destroyed window and new window 2020-01-27 01:20:10 -08:00
kangyu
9406f220d4 rename variable name to indicate screen coordinate instead of workspace coordinate 2020-01-26 12:59:17 -08:00
kangyu
357756d384 reduce the amount of MoveWindow() call 2020-01-26 12:55:57 -08:00
kangyu
b7fcca2df6 reliably restore window position by calling SetWindowPlacement() first, followed by MoveWindow(). Required for release build 2020-01-26 01:51:16 -08:00
kangyu
f3f414797a smooth window location update using 3 second window to reduce noise across timer boundary 2020-01-26 01:06:29 -08:00
kangyu
b2216a3a9e refix failure to restore snapped window using GetWindowRect()/MoveWindow() API in addition to GetWindowPlacement()/SetWindowPlacement() 2020-01-26 00:06:29 -08:00
kangyu
49aedbde38 rename variable and magic const 2020-01-25 14:26:45 -08:00
kangyu
d148fa4119 fix inconsistent snap window recovery 2020-01-25 14:00:44 -08:00
kangyu
a632877ee4 fix failure to restore snapped window 2020-01-25 01:03:39 -08:00
kangyu
c132f80c2b recapture all window position right after restore, also clear waiting counter to avoid hazard with next restore 2020-01-23 20:42:14 -08:00
kangyu
33b6fd26de enhance window position comparison 2020-01-23 20:17:06 -08:00
kangyu
0c075ab4b2 postpone goofy window movement update by waiting as long as 60 seconds. Refine coding style 2019-12-23 22:47:46 -08:00
kangyu
589989844d resolve issue when switching between rdp sessions with different monitor configuration 2019-12-22 21:40:21 -08:00
kangyu
93b905ed00 simplify code, update comment 2019-12-22 19:59:32 -08:00
kangyu
d3633e26a8 limit 2 window position update per second 2019-12-22 19:59:32 -08:00
kangyu
a09f07b17a add comment on runtime fix 2019-12-22 19:59:31 -08:00
kangyu
a9d14eee07 keep compatibility with legacy windows 7/8 2019-12-22 19:59:31 -08:00
kangyu
67b801370b windows10 update: fix display name variation in rdp session; fix hang in call to SetWindowsPosition for "CodeSetup*" 2019-12-21 18:27:25 -08:00
kwlockwo
ca03b6b652 All restore of snapped Windows 2016-08-28 14:35:21 +10:00
Min Yong Kim
9409d20445 1. Modification to make the application run in the systray
2. Abstracting processor and winapi logic into common dll and entry points into separate dlls
3. Adding icons
4. Switching build platform to AnyCPU. Seems to work on x64, don't have a x86 platform to test on
2015-02-27 00:38:08 -05:00
Renamed from Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.WpfShell/PersistentWindowProcessor.cs (Browse further)