From 6a85f9bf74b76954f5da433087c29ce6640c71d5 Mon Sep 17 00:00:00 2001 From: pavelxdd Date: Mon, 11 Dec 2017 21:48:45 +0300 Subject: w32_common: update outdated comment about wakeup events mpv doesn't use WM_USER for wakeup events since 91079c0 Updated the comment. --- video/out/w32_common.c | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3