-
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 doesn't scale width when changing monitor size #11125
Comments
Not sure if this is related to #10515, but it looks (very) loosely similar, so mentioning it just in case. |
Ah, would you mind updating to the latest version? |
@DHowett this is still a problem on 1.11.2421.0 - I'll update the version info in my description. |
Thank you! 🙂 |
Did this just get fixed in #10744 ? |
This does look like #10744, but that one was fixed in v1.11.2421.0. Presumably we don't get a |
Might also pay to check when UI scaling changes for the current screen. Bit of an edge case I probably change mine more often than most. |
I encounter this issue now too. My situation is as follows: When I connect my external screen, the internal screen becomes the secondary screen and has a lower resolution. Now I had the external screen connected and then disconnected again and now the window doesn't have the full width anymore. |
This is still an issue btw. |
I believe there's a 99% chance this will be fixed when we do the SPI_WORKAREA thing from #16067 |
Workaround: Run this AutoHotkey (v1) script whenever the size is messed up: WinGet, windowID, ID, ahk_class CASCADIA_HOSTING_WINDOW_CLASS
if windowID
{
WinGetPos, x, y, width, height, ahk_id %windowID%
SysGet, monitor, Monitor, %x%, %y%
SysGet, MonitorWorkArea, MonitorWorkArea, %monitor%
screenWidth := MonitorWorkAreaRight - MonitorWorkAreaLeft
screenHeight := MonitorWorkAreaBottom - MonitorWorkAreaTop
tolerance := 10
if (x >= MonitorWorkAreaLeft - tolerance and x <= MonitorWorkAreaLeft + tolerance and y >= MonitorWorkAreaTop - tolerance and y <= MonitorWorkAreaTop + tolerance)
{
offsetX := x - MonitorWorkAreaLeft
offsetY := y - MonitorWorkAreaTop
adjustedWidth := screenWidth - (2 * offsetX)
adjustedHeight := (screenHeight / 2) - (2 * offsetY)
WinMove, ahk_id %windowID%, , %x%, %y%, %adjustedWidth%, %adjustedHeight%
}
} |
Windows Terminal version (or Windows build number)
1.11.2421.0
Other Software
Windows 10 20H2 build 19042.1165
Steps to reproduce
Expected Behavior
When I plug back into my external monitor I'd expect the width of the quake window to fit the width of the monitor, or at the very least, to be able to resize the quake window horizontally to make this be the case.
Actual Behavior
The quake window stays sized to the narrower monitor, even after switching back to a wider monitor (see screenshot below).
The text was updated successfully, but these errors were encountered: