-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Setting for hide window when it loses focus #13478
Conversation
src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw
Outdated
Show resolved
Hide resolved
src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw
Outdated
Show resolved
Hide resolved
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.
Thanks for whipping this up!
This is gonna sound super annoying, but I actually envisioned this as a setting that's not only restricted to the quake window. Like, I'd bet there are plenty of folks that want their non _quake
windows to also minimize on focus lost.
Ultimately, that would mostly mean the following changes to this PR:
- A super tedious string replace to replace most of the
autoHideQuakeWindow
withautoHideWindow
- (trickier): Right now, you just call
HideWindow
, whichSW_HIDE
s the window. For the quake window, that's fine, cause the quake window always hides on minimize. For other windows, that might not always work. We don't want to hide these windows unlessminimizeToNotificationArea
is also enabled.
That would let this setting affect any window, regardless of whether you're in the quake window or not. Now, there's more discussion to be had over if we should opt the quake window into this behavior by default (like we do for focus mode, etc). I'm leaning no, with us relying on #9992 for enabling separate window-name-settings. But I'm also open to discussion on this one.
Does that all make sense? If not, I can try and clarify. Overall, the code looks great. It's plumbed through all the right layers, it's in the settings UI, everythink here is otherwise :chef_kiss:
Thank you @zadjii-msft EDIT: I have updated the PR. Works with both window (normal Terminal and quake) and also consider the tray icon setting. |
src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw
Outdated
Show resolved
Hide resolved
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.
easy-button.jpg
Thanks for nearing with us! This looks great to me. You're gonna make a lot of people happy 😄
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Hi, is it possible to enable this only for quake windows? I'd like my normal windows to act normal (minimize to taskbar, no auto-minimize) and just my quake window to auto-hide when it loses focus. |
@jvincent-siplay at the moment, no. We're tracking that in #9992. |
🎉 Handy links: |
I don't understand the logic of why this should effect normal terminal windows. Auto hiding is non-standard behavior for windowed applications, while at the same time it makes little sense why a Quake console should stay open on losing focus. Either option as its currently configured ends up compromising the other for normal use cases. |
Summary of the Pull Request
Added setting for for hide window when it loses focus.
Works on normal window and quake window.
References
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed