[Bug]: titleBarOverlay and ready-to-show conflict #42409
Labels
28-x-y
blocked/need-info ❌
Cannot proceed without more information
bug 🪲
component/BrowserWindow
component/wco
has-repro-comment
Issue has repro in comments
platform/windows
Preflight Checklist
Electron Version
28.2.0
What operating system are you using?
Windows
Operating System Version
Windows 11 23H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When creating a
BrowserWindow
, setshow: false
in the options and listen for theready-to-show
event of the window. When the event is triggered, the window will be displayed. Generally speaking, this will run normally. But whentitleBarStyle:' hidden
andtitleBarOverlay: true
are set in the options, window will not send aready-to-show
event unlessshow
in the options is set totrue
.Actual Behavior
My code is as follows:
The console will not print
ready
, and the window will not be displayed, but when I set show to true, the window will be displayed normally, and after it is displayed, it will printready
. This means that the window will be displayed beforeready-to-show
, but this is not what I need. I want the window to be displayed afterready-to-show
.Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: