-
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
Quake Mode has incorrect window size after toggling fullscreen mode #10199
Comments
Yea I can also repro this. Thanks for the report! |
Note to self: This doesn't only apply to the quake window, it's just more prevalent. Any window in focus mode that's left aligned with the edge of the monitor will repro this behavior. This is due to the code in terminal/src/cascadia/WindowsTerminal/IslandWindow.cpp Lines 889 to 904 in 0fefdac
|
## Summary of the Pull Request When we're restoring from fullscreen, we do a little adjustment to make sure to clamp the window bounds within the bounds of the active monitor. We unfortunately didn't account for the size of the non-client area (the invisible borders around our 1px border). This didn't matter most of the time, but if the window was within ~8px of the side of the monitor (any side), then restoring from fullscreen would actually move it to the wrong place. As it turns out, the `_quake` window is within ~8px of the edges of the monitor _very often_. ## References * regressed in #9737 ## PR Checklist * [x] Closes #10199 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed The repro in the bug was fairly straightforward. It doesn't happen anymore.
## Summary of the Pull Request When we're restoring from fullscreen, we do a little adjustment to make sure to clamp the window bounds within the bounds of the active monitor. We unfortunately didn't account for the size of the non-client area (the invisible borders around our 1px border). This didn't matter most of the time, but if the window was within ~8px of the side of the monitor (any side), then restoring from fullscreen would actually move it to the wrong place. As it turns out, the `_quake` window is within ~8px of the edges of the monitor _very often_. ## References * regressed in #9737 ## PR Checklist * [x] Closes #10199 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed The repro in the bug was fairly straightforward. It doesn't happen anymore.
🎉This issue was addressed in #10737, which has now been successfully released as Handy links: |
🎉This issue was addressed in #10737, which has now been successfully released as Handy links: |
Windows Terminal version (or Windows build number)
Windows: 10.0.19043.0, Terminal: 1.9.1445.0
Other Software
I am using 125 % DPI scaling
Steps to reproduce
2021-05-26-09-22-58.mp4
Expected Behavior
After leaving fullscreen mode, the quake bar should have the same size as before
Actual Behavior
The window is moved to the right, there is a very noticeable gap between the window and the border of the screen
![image](https://user-images.githubusercontent.com/1827784/119619872-b756d580-be04-11eb-842e-84fd107357b6.png)
The text was updated successfully, but these errors were encountered: