summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/w32_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index ad25944065..1db54fc70e 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -1008,8 +1008,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
update_display_info(w32);
break;
case WM_CLOSE:
- // Don't actually allow it to destroy the window, or whatever else it
- // is that will make us lose WM_USER wakeups.
+ // Don't destroy the window yet to not lose wakeup events.
mp_input_put_key(w32->input_ctx, MP_KEY_CLOSE_WIN);
return 0;
case WM_NCDESTROY: // Sometimes only WM_NCDESTROY is received in --wid mode