Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Windows: window on secondary monitor does not restore at exact position #36122
This was referenced
Oct 17, 2017
@bpasero Just FYI: I opened VS Code, put it on the second monitor, maximized it, then closed it. When I reopened it, it opened it (maximized) on the Surface tablet. That's at least better than it showing up off-screen. When do you think my original problem (appearing off-screen) might be fixed?
In case it helps anyone who stumbles on this issue; the problem is the most severe when the zoom level of the primary monitor doesn't match the secondary monitor. I suspect the saved coordinates are being erroneously multiplied by the zoom level of the primary monitor, rather than the ones on the secondary monitor. (I finally ended up setting my 4K primary monitor to 1920x1080 with 100% zoom, which fixed the positioning issue on VSCode open)
I pushed a workaround in VS Code that seems to fix this by calling
Maybe use VS Code stable to verify the issue reproduces with your setup.