Skip to content

Commit

Permalink
Merge pull request #78151 from jpcerrone/fix_windowed_move_problems
Browse files Browse the repository at this point in the history
Fix window resizing problems on Windows
  • Loading branch information
akien-mga committed Jun 13, 2023
2 parents a3c49ad + a805846 commit 9e7349b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ void DisplayServerWindows::window_set_mode(WindowMode p_mode, WindowID p_window)
wd.multiwindow_fs = false;
wd.maximized = wd.was_maximized;

_update_window_style(p_window, false);

if (wd.pre_fs_valid) {
rect = wd.pre_fs_rect;
} else {
Expand All @@ -1394,8 +1396,6 @@ void DisplayServerWindows::window_set_mode(WindowMode p_mode, WindowID p_window)
wd.pre_fs_valid = true;
}

_update_window_style(p_window, false);

MoveWindow(wd.hWnd, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, TRUE);

if (restore_mouse_trails > 1) {
Expand Down

0 comments on commit 9e7349b

Please sign in to comment.