What is the translucent white rectangle area appear before a transparent window show up?

Godot Version

4.2 dev5

Question

I want to try to draw a custom window so that I can design my own titlebar.
Everything works fine, but I noticed there is always a translucent white rectangle shape area appears before the window show up.
Sometimes it last more than one frame, which makes me feeling uncomfortable. Is there any way to avoid it? Tried to hide the window and show it after Initialization,this still happened.
Graph is how this rectangle looks like. I just put a blue panel in the transparent borderless window.(second graph). didn’t use any code.
f79a61cb7938481873eb21612967bad4

What you have there is Windows trying to load your application but it is being a little slow. That’s my best guess of what could be going on.

1 Like

Can you show your code ? and a tree print ?

1 Like

I dont need any code to reproduce this, but i can show you the scene tree, if that’s what you mean.
and all I did is just start a new project, create a panel node, and set
Project Settings/Displat/Window/Size/Transparent = true
Project Settings/Displat/Window/Size/Boardless= true
Project Settings/Displat/Window/Per Pixel Transparency = true
Project Settings/Rendering/Viewport/Transparent Background= true

then click run project, you should see first a black rectangle area (which is the boot splash, I also dont like it to show in this way), and then the translucent rectangle.

I also considered about this, but then one thing confuse me is if I try to hide a subwindow(which has already been initialized), and then show it. this translucent rectangle shows up again.
I’m not expert of this, but i also thought about the possibility of this is how Windows os deal with transparent window. But clearly I saw some application shows a transparent boot splash or other window without this annoying thing.
I’m making a application which need to open many subwindow, idk if users can notice this easily or if it is just me being too sensitive.