-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Window layout style bug on open #146683
Comments
that's the reason I went back to 1.65, frames are so annoying. |
Hi @deepak1556, just a small update: I've downloaded the latest VS Code Insiders |
This issue persists in the new latest version release, 1.67.0. |
The issue persists in today's release, 1.68.0. |
Since the related bug in the Electron repo has a |
Current status of investigationThe upstream Electron issue is at electron/electron#30760. Minimal reproconst { app, BrowserWindow } = require('electron')
function createWindow() {
new BrowserWindow({
width: 800,
height: 600,
frame: false
})
}
app.whenReady().then(() => {
createWindow()
})
app.on('window-all-closed', function () {
app.quit()
}) Running Going through the Chromium code with the PR fix for frameless resizable windowsThe PR electron/electron#35189 fixes the issue for frameless resizable windows by calling
After adding a long
I have also attached full logs to the end of this comment. The PR doesn't fix the case of frameless non-resizable windowsFor frameless windows that cannot resize, even if we call
More informationI have searched the Chromium and Electron codebases for Searching Windows documentation, I found the following:
Also, Electron calls I also tried creating a minimal project in VS to reproduce the issue but wasn't successful. The frame that rendered seemed to have a Windows 10 style rather than a Windows 7 one. I also tried registering a listener in Attached log filesA text file showing the good case where WM_DWMNCRENDERINGCHANGED is only called once. The window is frameless and resizable. |
The PR that @deepak1556 linked above (partially based on electron/electron#35189) should resolve the issue for VS Code Insiders and hence close this issue, but there's still more I'd like to investigate, especially for frameless non-resizable windows. More loggingI added some lines to log the hwnd and style passed into each relevant
There's also another window being created really early, but I don't think it influences the issue.
Good scenario (meaning no frame showing) with
Bad scenario with
Bad scenario with
The Delaying the
|
This bug has been fixed in the latest release of VS Code Insiders! @laurelkeys, you can help us out by commenting If things still don't seem right, please ensure you're on version 9529e11 of Insiders (today's or later - you can use Happy Coding! |
/verified |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
File > New Window
(or use the shortcutCtrl+Shift+N
)The GIF below first shows the expected behavior, opening version 1.65.0, followed by the current behavior of version 1.66.0.
The two executables were downloaded from: https://update.code.visualstudio.com/1.65.0/win32-x64-archive/stable and https://update.code.visualstudio.com/1.66.0/win32-x64-archive/stable.
The text was updated successfully, but these errors were encountered: