[Bug]: Non-resizable windows can still be maximized on Macs the first time #39077
Closed
3 tasks done
Labels
25-x-y
26-x-y
bug 🪲
component/BrowserWindow
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/macOS
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
25.2.0
What operating system are you using?
macOS
Operating System Version
macOS Ventura 13.2.1
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
I expect that if I set
resizable:false
on aBrowserWindow
, I won't be able to maximize/fullscreen it.Actual Behavior
The green maximize button is enabled and I can maximized. When I click it again however and the window restores to the normal size, then it becomes disabled.
Testcase Gist URL
https://gist.github.com/pushkin-/67fb41db75da3eb6dbaa34d39d34fabf
Additional Information
Start the gist, maximize the window, unmaximize it, notice the green maximize button is now correctly disabled.
I also get a bunch of logs in the console when I fullscreen the window for some reason:
The text was updated successfully, but these errors were encountered: