Commit graph

400 commits

Author SHA1 Message Date
Kang Yu
df994d5fac restore from compatible display config on disk: check offscreen using normal position rect 2023-07-30 23:10:48 -07:00
Kang Yu
2f171712ac guard against off-screen restore when target display config is different from current config 2023-07-30 22:38:19 -07:00
Kang Yu
cf90b6f633 refactor IsRectOffScreen() 2023-07-30 22:33:16 -07:00
Kang Yu
6567b9ad0a dialog for restore from disk when no exact match is avail or shfit key is pressed 2023-07-30 16:23:55 -07:00
Kang Yu
c5dd09c05d make dpi awareness code compatible with windows7 2023-07-28 14:35:02 -07:00
Kang Yu
4ce7c99e46 auto center labels in launch process dialog 2023-07-28 12:47:05 -07:00
Kang Yu
0920e2533c fix blurred UI by using high DPI awareness setting. Get/Set window position still uses DPI unaware setting 2023-07-27 23:38:07 -07:00
Kang Yu
7683ac471f update virtual desktop id when foreground event is received 2023-07-26 11:47:18 -07:00
Kang Yu
4bd369c78a consistent delay to simulate double click 2023-07-25 13:11:21 -07:00
Kang Yu
1bb0e09644 reliably restore full screen window 2023-07-25 12:50:31 -07:00
Kang Yu
92afa823ae #243, do not record stale process 2023-07-25 11:36:41 -07:00
Kang Yu
43c52eae8f #243, avoid core dump when GetProcess() failed 2023-07-25 09:58:59 -07:00
Kang Yu
10facd158d fix another issue related to #239, reject unexpected position change of minimized window 2023-07-22 23:34:15 -07:00
Kang Yu
ce4470420a remove hack for window collection 2023-07-22 18:50:13 -07:00
Kang Yu
3d35d5a802 a window is off screen if both the top left and top right corner is off screen 2023-07-22 15:28:27 -07:00
Kang Yu
4864ee85b9 #224, remove disable switch 2023-07-22 14:41:53 -07:00
Kang Yu
964cad9341 refix #239, restore window invisible status 2023-07-22 14:36:45 -07:00
Kang Yu
197f540b68 revert #239 fix, call SendMessage() to avoid side effect of making minimized window visible 2023-07-22 12:34:10 -07:00
Kang Yu
415baf4cf6 pop message box before switching virtual desktop when restore from disk 2023-07-19 17:14:46 -07:00
Kang Yu
df941d0e6c #172, restore from disk sorted by virtual desktop 2023-07-19 17:03:51 -07:00
Kang Yu
36d2039585 #172, wait new window to settle before switching virtual desktop 2023-07-19 11:19:04 -07:00
Kang Yu
64b9a17e84 more fix for #241 2023-07-19 10:58:36 -07:00
Kang Yu
e91b148f7f fix off-screen window position according to current screen resolution 2023-07-19 09:51:19 -07:00
Kang Yu
918ca4b514 fix #239, minimized window not restored for "close out" app window (qtorrent, steam) 2023-07-17 17:17:10 -07:00
Kang Yu
d50ad3ad4a resolve #240, detect user alt-tab activation during auto-restore 2023-07-16 16:55:44 -07:00
Kang Yu
660ec9241e resolve #240 : make a guess if unminimization event is initiated by user 2023-07-16 16:34:57 -07:00
Kang Yu
d1e3fc754b fix #172, switch to correct virtual desktop before launching new process 2023-07-15 21:40:06 -07:00
Kang Yu
c5ef467e9c (unsuccessful) attempt to restore window to specified virtual desktop 2023-07-15 18:47:56 -07:00
Kang Yu
523bf1d1d3 record virtual desktop id in db 2023-07-15 18:07:43 -07:00
Kang Yu
d8a6f54756 coding style: consolidate command arg of ShowWindow() 2023-07-08 16:48:49 -07:00
Kang Yu
4f36016c60 fix issue similar to #241, aovid activating other virtual desktop when restoring maximized window 2023-07-08 16:21:59 -07:00
Kang Yu
fefdec5e5e refix #224 due to #241, do not activate window before minimize window to correct taskbar 2023-07-08 15:48:40 -07:00
Kang Yu
2c6d2b6fd3 issue 241: disable #224 fix if the window being restored does not belong to current virtual desktop 2023-07-07 22:23:19 -07:00
Kang Yu
aae9031677 document new command switch for #224 2023-07-07 21:42:50 -07:00
Kang Yu
32e7c06e6e fix hard-coded double click interval 2023-06-16 12:21:35 -07:00
Kang Yu
525000f948 change process priority to high during restore 2023-06-16 11:52:04 -07:00
Kang Yu
543d56c540 fix issue #236: automatically toggle taskbar lock to restore taskbar position 2023-06-09 15:14:01 -07:00
Kang Yu
e835667abf #224, preserve minimized full-screen status from being overwritten 2023-05-03 12:37:37 -07:00
Kang Yu
3bcf34ba26 #224, avoid side-effect of restoring invisible window 2023-05-03 11:42:25 -07:00
Kang Yu
c9d1eff0ad #224, avoid restore window with non-positive client rect 2023-05-02 11:52:01 -07:00
Kang Yu
a10e344604 turn on fix for #224 (accurately restore minimized window to proper taskbar) by default 2023-04-29 12:31:18 -07:00
Kang Yu
6619f7c205 unify maximize/minimize procedure, remove dry run test code 2023-04-29 12:29:27 -07:00
Kang Yu
4bceca33e6 fix #224, move window to proper monitor before minimize it 2023-04-28 16:12:03 -07:00
Kang Yu
9db9019f06 refactor AllowRestoreZorder() 2023-04-21 13:20:42 -07:00
Kang Yu
122828ce43 #225, enable topmost flag fix when -fix_zorder 2023-04-21 10:44:01 -07:00
Kang Yu
c039140519 attempt to fix #224 2023-04-18 10:38:12 -07:00
Kang Yu
1c27d4439c issue #224: new command option -accurate_taskbar_minimized_window=1, default off 2023-04-16 22:50:18 -07:00
Kang Yu
285b64b606 #222, disable ctrl activate window action to alter z-order 2023-03-30 10:35:04 -07:00
Kang Yu
72ef2a4dc4 related to #220, allow -ignore_process option for taskbar window 2023-03-19 12:33:41 -07:00
Kang Yu
9717dae16b remove Ninjacrab from name space 2023-03-03 11:59:41 -08:00
Renamed from Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.Common/PersistentWindowProcessor.cs (Browse further)