at-terminal --behind opens the window behind the others, leaving the foreground (AHT-231) #60
Loading…
Reference in a new issue
No description provided.
Delete branch "aht-231-swap-behind"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: AHT-231
Nelson, on the treadmill PC: an update kept bringing at-terminal up over his screen. at-update's swap ends the open at-terminal and has the at server start the new release, and the new window always took the foreground and the top of the z-order, even when he was in another app.
Added
at-terminal --behind(Windows): the first window is created inactive (with_active(false), so its firstShowWindowisSW_SHOWNOACTIVATE), and at start, while it is still cloaked,open_behindputs it under every other window (SetWindowPos(HWND_BOTTOM, SWP_NOACTIVATE)). The foreground stays where it is and nothing on any monitor is covered. It is an ordinary window afterwards: taskbar, Alt+Tab and a summon bring it forward.--behindparses as a plain flag; a README line.Changed
--behindskipscome_forward_on_launch(theSetForegroundWindow/ attach-input path that pulled it to the front, HOMECFG-94).force_window_active(itsSendInputAlt +SetForegroundWindow) at creation. An active one still does.Left alone
--behindlaunch that finds at-terminal running summons it like any launch.Not done here: at-update passing the flag; that is its own PR, merged after this release is out, since an older at-terminal rejects the unknown flag.
🤖 Generated with Claude Code