Commit graph

282 commits

Author SHA1 Message Date
Kang Yu
10736a3c6d remove commented code 2023-09-14 21:58:20 -07:00
Kang Yu
3578bbc908 revert invalid fix for #240(#239) 2023-09-14 21:56:48 -07:00
Kang Yu
65576a3fc5 remove unused code 2023-09-14 19:28:29 -07:00
Kang Yu
78e2ce53fa reliably restore full-screen window by giving it a second try 2023-09-14 16:01:03 -07:00
Kang Yu
097eb9398d fix key not found exception 2023-09-14 14:07:05 -07:00
Kang Yu
91819fc53c integrate ActivateWindow() into SwitchForeBackground() 2023-09-14 13:42:55 -07:00
Kang Yu
78fd276b54 restore full screen window in SwitchForeBackground() 2023-09-14 13:22:30 -07:00
Kang Yu
5999a5bff6 new feature: ctrl click pw icon to restore foreground window to its last closing position 2023-09-14 13:02:20 -07:00
Kang Yu
42533389f2 refactor new function RecallLastKilledPosition() 2023-09-14 12:06:03 -07:00
Kang Yu
2c4995e394 fix conflict between smart foreground/background and full screen activation 2023-09-12 22:26:04 -07:00
Kang Yu
a9d0eb7ad9 top window might not be taskbar 2023-09-10 22:20:49 -07:00
Kang Yu
4f3965a367 new feature: shift click empty desktop to switch foreground/background window; ctrl click empty desktop to bring current foreground window to previous z-order and update the screen size/pos of background record with current value 2023-09-10 16:44:57 -07:00
Kang Yu
1781698364 immediately capture smart window activation/de-activation 2023-09-09 23:55:38 -07:00
Kang Yu
41d2791538 new feature: click vacant desktop to bring the current foreground window to previous background position. Click a background window to bring it to previous foreground position 2023-09-09 18:11:34 -07:00
Kang Yu
bfa128a1c8 speed up restore by disable icon text change 2023-08-31 21:00:08 -07:00
Kang Yu
c7167ce18e #246, restore full screen window last 2023-08-12 18:12:32 -07:00
Kang Yu
f8e4ab24fa avoid side-effect of failure to set foreground window in ctrl-move method 2023-08-12 17:42:58 -07:00
Kang Yu
42f8e54e31 new feature: ctrl move foreground window to bring it back to previous background position 2023-08-12 15:09:17 -07:00
Kang Yu
a63c7f4127 compensate for no event triggered for SetWindowPos()/MoveWindow() call 2023-08-11 18:58:46 -07:00
Kang Yu
111ce04c6d remove unused code 2023-08-11 17:44:26 -07:00
Kang Yu
5a11738f14 minimized fullscreen mstsc window is not candidate of foreground window 2023-08-11 17:07:14 -07:00
Kang Yu
b26bbf608e ctrl click pw icon has side-effect of activating taskbar window, not meant to put taskbar to background 2023-08-11 11:18:01 -07:00
Kang Yu
253f97d687 customized GetForegroundWindow() 2023-08-10 21:38:25 -07:00
Kang Yu
5c2c875b10 hwnd sanity check 2023-08-08 15:53:44 -07:00
Kang Yu
3b7592e1cc new feature: ctrl alt click pw icon to bring current foreground window to bottom 2023-08-07 18:46:15 -07:00
Kang Yu
cf7bc24013 new feature: ctrl activate a background window to restore its previous foreground position 2023-08-07 17:28:23 -07:00
Kang Yu
d2d1a096dc add null reference check 2023-08-07 16:14:06 -07:00
Kang Yu
94bcf761d6 new feature: ctrl click pw icon to bring the current foreground window back to where it was before activated 2023-08-07 16:09:13 -07:00
Kang Yu
92e9fcdc69 avoid crash due to stale process object 2023-08-06 16:05:54 -07:00
Kang Yu
3840a9108a simplify dpi-aware coding using default argument 2023-08-02 15:52:58 -07:00
Kang Yu
ed49813531 unify message box setting 2023-08-02 15:07:41 -07:00
Kang Yu
07e4505704 sort display config list in dialog 2023-07-31 10:29:03 -07:00
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