summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorpavelxdd <pavel.otchertsov@gmail.com>2017-12-11 21:48:45 +0300
committerKevin Mitchell <kevmitch@gmail.com>2017-12-11 11:51:41 -0800
commit6a85f9bf74b76954f5da433087c29ce6640c71d5 (patch)
tree63ed28498411799f9740f04c06783b913da08722 /video
parent308b3cd71bf252ef3e543f6689468641a7fe2cc4 (diff)
downloadmpv-6a85f9bf74b76954f5da433087c29ce6640c71d5.tar.bz2
mpv-6a85f9bf74b76954f5da433087c29ce6640c71d5.tar.xz
w32_common: update outdated comment about wakeup events
mpv doesn't use WM_USER for wakeup events since 91079c0 Updated the comment.
Diffstat (limited to 'video')
-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