I have noticed that (at least in gtk 4) when I set decorated to false for a window, the corners are no longer round. Might be how it works, the problem is that if I still try to set the corners radius with CSS
window { border-radius: 8px }
they don’t stay round and switch back to square randomly. As I drag the window around the round borders seem to appear only when the window is in certain parts of the screen or only when it’s moving.
You think I have to do something else or might it be some glitch?
I did window { border-radius: 8px; padding: 8px }, for example, but it doesn’t fix the issue and the padding goes around everything, including the header.
You lilely don’t want to set decorated=false, that’s not what it’s for.
If you want to remove the title bar rather than all decorations (incl. shadows, rounded corners etc etc), put a invisible widget there or use AdwWIndow which does exactly that underneath.