Commit graph

1827 commits

Author SHA1 Message Date
Kang Yu
4df563f1bb speedup PW startup restore by setting set process priority to high during the first 10 seconds of PW starting 2025-05-03 16:44:10 -07:00
Kang Yu
e8f06c1368 no need to write xml when restore finished, as it is done in session end 2025-05-03 16:15:24 -07:00
Kang Yu
2c06fe1684 #388, fix mismatch killed window for jEdit 2025-05-01 23:43:38 -07:00
Kang Yu
9e85ee5810 #369, fix crash on windows 11 when launching webpage 2025-05-01 17:55:09 -07:00
Kang Yu
4998a104ea tag 5.64 2025-05-01 15:46:41 -07:00
Kang Yu
1fd82f35c8 avoid trigger batch restore in restore single window mode 2025-05-01 15:42:07 -07:00
Kang Yu
e7b141e095 further speedup auto-restore-new-window 2025-05-01 15:01:17 -07:00
Kang Yu
304c654e80 inherit window in stack order (last kill, first inherit) 2025-05-01 14:55:44 -07:00
Kang Yu
9661f8bd79 undo wild match for non-resizable window 2025-05-01 11:30:27 -07:00
Kang Yu
5d26d86e28 speedup auto-restore-new-window, reduce killed window entry by wild matching non-resizable window which will not be restored 2025-05-01 11:16:42 -07:00
Kang Yu
f05d569387 #400, fix wrong mismatch of dialog of different style 2025-05-01 09:57:36 -07:00
Kang Yu
f66dc3afd8 match new window with killed one in LIFO style 2025-04-30 19:47:32 -07:00
Kang Yu
5f666b20d1 avoid wrong matching 2025-04-28 16:36:47 -07:00
Kang Yu
2d695d11bf tag 5.63, update help for command line option change 2025-04-28 14:53:26 -07:00
Kang Yu
8da7d9b4bc turn on -auto_restore_new_window_to_last_capture again 2025-04-28 14:24:18 -07:00
Kang Yu
f7a1f92343 fix wrong tick value for 5 min 2025-04-28 14:16:45 -07:00
Kang Yu
8771c2edd7 disable auto restore from db/xml at pw start if system is up more than 5 min 2025-04-28 14:14:31 -07:00
Kang Yu
f34fffa574 disable auto restore from db if system is up more than 5 min 2025-04-28 14:10:41 -07:00
Kang Yu
cce0f7f52d refix #369, #388, #392: improve algorithm matching new window to killed one. Add command option -pos_match_threshold, using 40 as default value 2025-04-28 13:50:30 -07:00
Kang Yu
8c5d6475ad fix broken -auto_restore_new_window_to_last_capture 2025-04-28 10:58:58 -07:00
Kang Yu
052cb05f53 refix delay activating webpage commander window when curosr is beam (user might be typing) 2025-04-27 22:51:01 -07:00
Kang Yu
40f8f5cefd delay activating webpage commander window when cursor is beam (user might be typing) 2025-04-27 22:11:42 -07:00
Kang Yu
7dc0cbee82 relax title match when inherit killed window 2025-04-27 21:18:07 -07:00
Kang Yu
1a5d9442d2 relax class name and position match when inherit killed window 2025-04-27 21:14:09 -07:00
Kang Yu
d36bf0c56c reduce cpu load on non-window object 2025-04-27 14:56:03 -07:00
Kang Yu
9224d62191 postpone capture to avoid wrong matching to killed window 2025-04-26 22:55:31 -07:00
Kang Yu
e41caba220 improve debug message 2025-04-26 22:29:16 -07:00
Kang Yu
769f35b681 debug print inherited window handle 2025-04-26 18:37:18 -07:00
Kang Yu
2ba0a5395b move inherit killed window out of IsWindowMoved() to CaptureWindow() 2025-04-26 15:25:31 -07:00
Kang Yu
e4be317e77 improve accuracy of matching killed window based on position similarity 2025-04-25 23:39:44 -07:00
Kang Yu
fb5f538b88 improve re-entrance protection using lock 2025-04-18 14:29:29 -07:00
Kang Yu
3b5813bb35 reduce event loggging of regular trimming of position history 2025-04-18 13:20:28 -07:00
Kang Yu
de1b815d57 fix dead-loop in TrimQueue() 2025-04-14 21:20:21 -07:00
Kang Yu
62452f3e0b fix dead-loop in TrimQueue(), causing auto-restore to hang, possibly due to wrong inheritance 2025-04-14 16:25:06 -07:00
Kang Yu
0adf762fa0 fix wrong capture due to improper unfreeze 2025-03-24 10:35:28 -07:00
Kang Yu
05a740a21f unlock unknown display session when any window is moved/resized/minimize/unminimized 2025-03-19 16:01:07 -07:00
Kang Yu
4330c95216 refactor TryInheritWindow(), making it safe to be called for both new and captured window 2025-03-17 20:53:17 -07:00
Kang Yu
23b63d09ea tag 5.62, update help 2025-03-17 16:40:29 -07:00
Kang Yu
6097ab4bc7 turn off auto restore existing window to last capture 2025-03-17 16:36:03 -07:00
Kang Yu
aacaefc205 #369, #388, #392: turn off auto-restore new window off by default 2025-03-17 16:30:49 -07:00
Kang Yu
557a3bbddb #369, #388, #392: newly created window auto-restored to wrong place due to matching to incorrect entry with different window title 2025-03-17 14:29:11 -07:00
Kang Yu
189611ad3a improve event message for inherit window 2025-03-17 14:22:16 -07:00
Kang Yu
86926ffd27 #388, fix missing capture of maximized window 2025-03-16 15:36:56 -07:00
Kang Yu
10dd03498a #389, persist exception when running PW with -ignored_process 2025-03-08 16:44:40 -08:00
Kang Yu
3c585c1dab tag 5.61 2025-03-08 15:54:57 -08:00
Kang Yu
172cbdc35c undo speedup inheritance of killed window on 1/29 2025-03-08 15:29:05 -08:00
Kang Yu
5fc59d5bc5 #368, #388: fix mismatching of new window due to improper timing 2025-03-08 14:16:05 -08:00
Kang Yu
8c710ab55c speculative fix for failure to restore, due to write xml dump in realtime event handler 2025-02-04 12:18:47 -08:00
Kang Yu
4f7479b0b7 fix compile warning 2025-02-04 11:50:13 -08:00
Kang Yu
c15ab870ac fix crash calling GetWindowTextLength() 2025-02-04 11:01:30 -08:00