[windows] Added early return for when toggling borderless while fullscreen
This commit is contained in:
@ -2623,6 +2623,9 @@ void DisplayServerWindows::window_set_flag(WindowFlags p_flag, bool p_enabled, W
|
|||||||
} break;
|
} break;
|
||||||
case WINDOW_FLAG_BORDERLESS: {
|
case WINDOW_FLAG_BORDERLESS: {
|
||||||
wd.borderless = p_enabled;
|
wd.borderless = p_enabled;
|
||||||
|
if (wd.fullscreen) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
_update_window_mouse_passthrough(p_window);
|
_update_window_mouse_passthrough(p_window);
|
||||||
_update_window_style(p_window);
|
_update_window_style(p_window);
|
||||||
ShowWindow(wd.hWnd, (wd.no_focus || wd.is_popup) ? SW_SHOWNOACTIVATE : SW_SHOW); // Show the window.
|
ShowWindow(wd.hWnd, (wd.no_focus || wd.is_popup) ? SW_SHOWNOACTIVATE : SW_SHOW); // Show the window.
|
||||||
|
|||||||
Reference in New Issue
Block a user