-
Notifications
You must be signed in to change notification settings - Fork 29.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
Maximize/restore button is not responsive when Window Controls Overlay is enabled #159851
Comments
I have the same problem on Windows 11. |
I'm unable to reproduce the issue on Windows 10 + Ubuntu WSL. Added Windows 11 label. |
It turns out that win_caption_button_container.cc in electron/electron has some code that disables the maximize/restore button when touch mode is enabled. I'm curious whether you are using a tablet, or whether Chromium thinks you are using a tablet (or in tablet mode) when you're not actually using one? |
That appears to be the issue! My laptop (Asus Flow X13) has a touch screen with a 360 degree hinge (like the Lenovo Yoga laptops). I typically have it standing on my desk in "tent mode" where the screen is folded almost all the way to the back, like this: ∧ When I folded it back and used it as a normal laptop, the maximize/restore button functions as expected. |
Thanks for confirming the issue, this is same as https://bugs.chromium.org/p/chromium/issues/detail?id=1338572. Electron should allow the window to be maximized if the window is not already maximized when changing to tablet mode. |
This bug has been fixed in the latest release of VS Code Insiders! @johningve, you can help us out by commenting If things still don't seem right, please ensure you're on version 8b98917 of Insiders (today's or later - you can use Happy Coding! |
@andreamah were you testing on a touch device ? |
I can also repro the issue on Windows 11 while in tablet mode. |
Yeah! Interesting, I tested on a surface laptop studio in "stage mode", so I guess that counts as a tablet mode? |
I just tested this issue again. |
@rzhao271 the original issue is about maximize button not working when entering touch mode which has been addressed. As for aligning the restore behavior either with edge or chrome should be a separate issue, also this needs discussion in upstream electron. |
In that case, closing this issue as verified |
Type: Bug
After updating to vscode 1.71.0, the Window Controls Overlay (WCO) becomes enabled by default, and the maximize/restore button no longer responds to hover / clicks. The button works when WCO is disabled.
Video:
VS Code version: Code 1.71.0 (784b017, 2022-09-01T07:36:10.600Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.15.57.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (34)
(4 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: