-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for "Always on top" mode #6903
Conversation
…ess<->Fullscreen still
…rless in either mode. Now double check NCIW...
… an acceptable known issue, since the alternative is having a white line on top of the window when it loses focus
…ll-just-do-it-myself # Conflicts: # src/cascadia/TerminalApp/ActionAndArgs.cpp # src/cascadia/TerminalApp/AppActionHandlers.cpp # src/cascadia/TerminalApp/ShortcutActionDispatch.cpp # src/cascadia/TerminalApp/ShortcutActionDispatch.h # src/cascadia/TerminalApp/ShortcutActionDispatch.idl # src/cascadia/TerminalApp/TerminalPage.cpp # src/cascadia/TerminalApp/TerminalPage.h
…lwaysOnTop # Conflicts: # doc/cascadia/profiles.schema.json # src/cascadia/TerminalApp/ActionAndArgs.cpp # src/cascadia/TerminalApp/AppActionHandlers.cpp # src/cascadia/TerminalApp/AppLogic.h # src/cascadia/TerminalApp/AppLogic.idl # src/cascadia/TerminalApp/Resources/en-US/Resources.resw # src/cascadia/TerminalApp/ShortcutActionDispatch.cpp # src/cascadia/TerminalApp/ShortcutActionDispatch.h # src/cascadia/TerminalApp/ShortcutActionDispatch.idl # src/cascadia/TerminalApp/TerminalPage.cpp # src/cascadia/TerminalApp/TerminalPage.h # src/cascadia/TerminalApp/TerminalPage.idl # src/cascadia/TerminalApp/defaults.json # src/cascadia/WindowsTerminal/AppHost.cpp # src/cascadia/WindowsTerminal/AppHost.h # src/cascadia/WindowsTerminal/IslandWindow.cpp # src/cascadia/WindowsTerminal/IslandWindow.h # src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this, it rocks
Don't forget the docs yo |
@msftbot merge this in 10 minutes |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
@msftbot merge this in 1 minute |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
🎉 Handy links: |
This PR adds support for always on top mode, via two mechanisms:
alwaysOnTop
. When set to true, the window will becreated in the "topmost" group of windows. Changing this value will
hot-reload whether the window is in the topmost group.
toggleAlwaysOnTop
, which will toggle thealwaysOnTop
property at runtime.
Detailed Description of the Pull Request / Additional comments
All "topmost" windows maintain an internal z-ordering relative to one
another, but they're all always above all other "non-topmost" windows.
So multiple Windows Terminal windows which are both
alwaysOnTop
willmaintain a z-order relative to one another, but they'll all be on top of
all other windows.
Validation Steps Performed
Toggled always on top mode, both in the settings and also at runtime,
and verified that it largely did what I expected.
Closes #3038