diff --git a/src/win/win_ui.c b/src/win/win_ui.c
index 61c00ee41..524a0f45e 100644
--- a/src/win/win_ui.c
+++ b/src/win/win_ui.c
@@ -8,7 +8,7 @@
*
* user Interface module for WinAPI on Windows.
*
- * Version: @(#)win_ui.c 1.0.19 2018/02/14
+ * Version: @(#)win_ui.c 1.0.20 2018/02/14
*
* Authors: Sarah Walker,
* Miran Grca,
@@ -643,6 +643,11 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
break;
case WM_MOVE:
+ /* If window is not resizable, then tell the main thread to
+ resize it, as sometimes, moves can mess up the window size. */
+ if (!vid_resize)
+ doresize = 1;
+
if (window_remember) {
GetWindowRect(hwnd, &rect);
window_x = rect.left;