Commit graph

562 commits

Author SHA1 Message Date
Kang Yu
f9e244272e fix random issue on Window 11 that unminimized full screen window is placed at wrong screen, without afecting multi-screen rdp session (#127) 2021-09-19 16:54:33 -07:00
Kang Yu
55d238cd81 fix issue #127, fails to unminimize multi-monitor full screen window 2021-09-12 14:50:58 -07:00
Kang Yu
f037084b2f rename command switch to -invoke_multi_window_process_only_once 2021-09-01 16:00:48 -07:00
Kang Yu
aefc566045 fix issue #126: observe user moved windows and keep them out of touch by auto restore 2021-09-01 15:31:49 -07:00
Kang Yu
430d529682 simplify restore from db, change default to launch process only once per db window group of same process id 2021-08-29 22:52:27 -07:00
Kang Yu
e8be39548d avoid restore invisible windows from db 2021-08-29 15:21:07 -07:00
Kang Yu
08261aef52 localize db match window hash table 2021-08-29 15:21:07 -07:00
Kang Yu
23e29cfd80 remove obsolete db matching code 2021-08-29 15:21:07 -07:00
Kang Yu
892d4bb759 remove obsolete db matching code 2021-08-29 15:21:06 -07:00
Kang Yu
bdba2f4261 fix issue #123, add command option -ignore_process to avoid restore specified window process 2021-08-22 23:02:03 -07:00
Kang Yu
fc0f3eeebb simplify matching window to db, ignore db id matching to allow intended reshuffle 2021-08-22 20:57:51 -07:00
Kang Yu
d9efd867cb simplify window matching to db as process id is not useful 2021-08-22 20:48:15 -07:00
Kang Yu
062f75da80 fix issue #121: when matching existing window to db, choose the best most close in position 2021-08-22 20:08:37 -07:00
Kang Yu
facbfd85da refine parameters for z-order fix 2021-06-19 11:30:45 -07:00
Kang Yu
5aa27769a8 double check existence of taskbar before shown PW icon 2021-06-17 21:35:53 -07:00
Kang Yu
ad764abee5 fix random icon disappear when computer restart from OS upgrade 2021-06-17 21:35:52 -07:00
Kang Yu
33648052e0 rename variable 2021-06-16 21:50:45 -07:00
Kang Yu
26e15d66ed format code indent 2021-06-16 21:44:26 -07:00
Kang Yu
2ca96cc3be improve accuracy of z-order restore 2021-06-15 13:36:47 -07:00
Kang Yu
158e16ae35 improve matching window to DB, no new process to create window of different class name and same process id, OK to start new process to recover window of same class name regardless process id is same or not 2021-06-14 11:22:06 -07:00
Kang Yu
2f7029c409 rename variable 2021-06-13 23:44:50 -07:00
Kang Yu
324781fbae add final iteration to match window to DB disregarding visibility, as some special window like msi afterburner may change visibility 2021-06-13 23:18:37 -07:00
Kang Yu
8bb1c310ee fix wrong match window to DB 2021-06-13 19:10:33 -07:00
Kang Yu
4459cf4d46 improve accuracy of matching window with DB using iterative method 2021-06-13 18:45:13 -07:00
Kang Yu
f53f2f36b7 replace isCHildWindow() with isTopLevelWindow(). More accurate DB match using window visibility 2021-06-13 14:02:04 -07:00
Kang Yu
7034d8e0f6 avoid capture invisiable window to DB 2021-06-11 00:18:32 -07:00
Kang Yu
b4e9961ba6 fix issue #119, relax restriction on broswer window restore from DB 2021-06-08 21:11:32 -07:00
Kang Yu
59ac553d3e fix bug on window insider build 21390, unminitized window restored to wrong monitor 2021-06-06 22:57:29 -07:00
Kang Yu
fe2a51655c fix message print in debug build 2021-06-01 16:27:45 -07:00
Kang Yu
774a7c097d reject possible disqualified capture that is too close to display change time 2021-05-30 21:03:57 -07:00
Kang Yu
1282b2964d fix code indent 2021-05-29 12:42:26 -07:00
Kang Yu
7fc310e640 simplify code 2021-05-29 12:41:33 -07:00
Kang Yu
1e37e78ebc preserve pauseAutoRestore value 2021-05-29 11:53:40 -07:00
Kang Yu
c883bda3e7 add experiment option -show_desktop_when_display_changes 2021-05-29 11:50:12 -07:00
Kang Yu
e5d3ed7a5e Revert "add experiment command option -sticky_display_config=1 to pre-restore when monitor goes to sleep to speed up final restore."
This reverts commit f180256f9e.
2021-05-28 19:08:26 -07:00
Kang Yu
d1b20fbeb3 put more code under DEBUG version 2021-05-25 15:04:49 -07:00
Kang Yu
8c541be00f speed up snapshot restore in remote desktop session 2021-05-25 12:41:57 -07:00
Kang Yu
053e8bbc8d improve runtime by masking Log.Trace() call in release build 2021-05-25 12:20:58 -07:00
Kang Yu
1a94e70352 use lock against race condition 2021-05-24 21:02:30 -07:00
Kang Yu
538ee70e9f refix remoteSession assignment 2021-05-24 20:02:17 -07:00
Kang Yu
e1c73c1e55 slow down restore a little bit during remote desktop session to guarantee accuracy 2021-05-24 18:03:07 -07:00
Kang Yu
1ed9ae971c finish auto restore earlier without waiting for 2 seconds 2021-05-24 12:06:34 -07:00
Kang Yu
a605eb7927 speed up auto restore by wait half second for taskbar to settle 2021-05-24 11:54:27 -07:00
Kang Yu
2516875896 speed up restore z-order by skip checking process responsiveness 2021-05-24 11:35:04 -07:00
Kang Yu
9c75983ed0 simplify PromptSessionRestore() 2021-05-24 10:17:48 -07:00
Kang Yu
ed612215ae disable -prompt_session_restore dialog when pause restore is on 2021-05-23 22:11:52 -07:00
Kang Yu
1de8ddaf46 hide cpu intensive code in debug mode 2021-05-23 21:13:47 -07:00
Kang Yu
5119a0312c not using thread to prompt session restore 2021-05-23 21:09:35 -07:00
Kang Yu
dc79fe381f allow -prompt_session_restore to work without login session 2021-05-23 21:02:53 -07:00
Kang Yu
cb9ecefe57 code cleanup 2021-05-23 16:53:07 -07:00