mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[windows] Added early return for when toggling borderless while fullscreen
This commit is contained in:
parent
0fdbf050e0
commit
0a679a0a7f
1 changed files with 3 additions and 0 deletions
|
|
@ -2623,6 +2623,9 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||
} break;
|
||||
case WINDOW_FLAG_BORDERLESS: {
|
||||
wd.borderless = p_enabled;
|
||||
if (wd.fullscreen) {
|
||||
return;
|
||||
}
|
||||
_update_window_mouse_passthrough(p_window);
|
||||
_update_window_style(p_window);
|
||||
ShowWindow(wd.hWnd, (wd.no_focus || wd.is_popup) ? SW_SHOWNOACTIVATE : SW_SHOW); // Show the window.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue