Borderless buggy and removes window animations

Godot Version



I’m creating an application and I wanted to make my own custom border and buttons so I enabled borderless mode. However this completely disabled windows animations and introduced a bug when setting the window mode to windowed from maximized. Instead of the window returning to it’s normal size, it seems to become completely hidden or unresponsive like shown in the video below. I can get around this by setting the window mode to fullscreen instead of maximized but the animations are still disabled.