How to avoid blue toolbar when switching from exclusive fullscreen mode to maximized (window)

Godot Version

4.2.1

OS

Windows 11

Question

Hi. When I open my game in Exclusive Fullscreen mode, switch to Maximized mode and then click the window button (the button between minimize and close on windows) I get this pretty ugly blue window toolbar.
image
When I start my game directly in Maximized mode, this doesn’t happen.
image
But if I switch from Maximized to Exclusive fullscreen and then back again to Maximized it happens again.

Don’t really know how to fix this hehe.

Also, if it helps, here’s the code I use to switch the screen modes:

static func set_window(scr:int):
	match scr:
		0:
			DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN)
		1:
			DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
		_:
			DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN)