Commit graph

99 commits

Author SHA1 Message Date
Kang Yu
08d18408c5 diable auto capture in full screen gaming mode 2023-10-16 23:19:33 -07:00
Kang Yu
0c525de23e stable restore from disk for core app windows 2023-10-16 22:45:00 -07:00
Kang Yu
f9de188eed Support restore Microsoft Store app windows from disk 2023-10-16 17:09:47 -07:00
Kang Yu
3ffb0e605f reduce event log for keeping minimized window 2023-10-15 10:55:36 -07:00
Kang Yu
b2c6360df2 attempt to speedup restore by remove registry key for short-lived display config 2023-10-11 00:11:37 -07:00
Kang Yu
e08a1da357 restore window position to last killed position need to set foreground status to erase memory 2023-10-07 17:29:02 -07:00
Kang Yu
a98e985ec6 avoid capture/restore fullscreen gaming config 2023-09-30 22:22:53 -07:00
Kang Yu
9794f55019 disable auto capture/restore in fullscreen gaming mode 2023-09-30 21:52:16 -07:00
Kang Yu
b62d233ba0 resolve conflict between full-screen gaming mode and smart foreground/background switching 2023-09-30 21:39:56 -07:00
Kang Yu
33c0b5fb26 partially undo last commit 2023-09-30 16:59:17 -07:00
Kang Yu
2e372e5626 avoid restore z-order of full-screen window 2023-09-30 16:45:44 -07:00
Kang Yu
8397981225 minor runtime speedup when no restore window is specified 2023-09-29 17:03:04 -07:00
Kang Yu
93e62a8557 improve fix for #253 2023-09-29 16:59:02 -07:00
Kang Yu
c681ab672b workaround #253, bypass activate event processing for window of ignored process 2023-09-25 11:53:28 -07:00
Kang Yu
4b8866ffde fix #254, avoid SwitchForeBackground(toFoundground: true) when foreground window is switched by 3rd-party app instead of user action 2023-09-19 15:25:15 -07:00
Kang Yu
786ba0437d add command option -foreground_background_dual_position=0 to disable smart foregroudn/backgrounding switching 2023-09-14 22:12:14 -07:00
Kang Yu
7d464fa4ab phase out command option -slow_restore 2023-09-14 22:01:44 -07:00
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