Repository: godotengine/godot (language: cpp)

Issue:
Embedded game tab splash screen out of bounds
### Tested versions

- Reproductible in Godot 4.4 beta 4
- Not reproductible in Godot 4.4 beta 3

### System information

Godot v4.4.beta4.mono - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6636) - AMD Ryzen 7 5800X 8-Core Processor (16 threads)

### Issue description

This video will showcase what the bug is, when the game is run

https://github.com/user-attachments/assets/3a1e2a5e-fcf5-4384-a9f7-50960cff24a4

### Steps to reproduce

Create a simple 2D scene in godot, save it and run the game.

### Minimal reproduction project (MRP)

[mrp-godot4.4beta4.zip](https://github.com/user-attachments/files/18842228/mrp-godot4.4beta4.zip)


Discussion / hints:
CC @Hilderin @bruvzg 
@akien-mga Thank you very much :D

Fix patch:
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 68e7351762b4..81c7030a732a 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -6120,15 +6120,15 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
 			WindowRect.top = wpos.y;
 			WindowRect.bottom = wpos.y + p_rect.size.y;
 		}
+	}
 
-		WindowRect.left += offset.x;
-		WindowRect.right += offset.x;
-		WindowRect.top += offset.y;
-		WindowRect.bottom += offset.y;
+	WindowRect.left += offset.x;
+	WindowRect.right += offset.x;
+	WindowRect.top += offset.y;
+	WindowRect.bottom += offset.y;
 
-		if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
-			AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
-		}
+	if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
+		AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
 	}
 
 	WindowID id = window_id_counter;


Test patch: