Skip to content

Commit 38eefba

Browse files
committed
Merge pull request #112297 from UrbanHelix/borderless-border-bug
[Windows] Fix legacy border when toggling borderless while fullscreen
2 parents 3fb8961 + 0a679a0 commit 38eefba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/windows/display_server_windows.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,9 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
26232623
} break;
26242624
case WINDOW_FLAG_BORDERLESS: {
26252625
wd.borderless = p_enabled;
2626+
if (wd.fullscreen) {
2627+
return;
2628+
}
26262629
_update_window_mouse_passthrough(p_window);
26272630
_update_window_style(p_window);
26282631
ShowWindow(wd.hWnd, (wd.no_focus || wd.is_popup) ? SW_SHOWNOACTIVATE : SW_SHOW); // Show the window.

0 commit comments

Comments
 (0)