diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-12-17 22:35:23 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-12-18 00:02:49 +0200 |
commit | ee7590813445e7b45e674586942e60537bba6231 (patch) | |
tree | 5fadfcfa8957fb37980ff904291d1f7834556e64 /video/out | |
parent | 82003047687d39523f3801b8187e084ecb539751 (diff) | |
download | mpv-ee7590813445e7b45e674586942e60537bba6231.tar.bz2 mpv-ee7590813445e7b45e674586942e60537bba6231.tar.xz |
video/w32_common: move minimized state signaling to where it happens
WM_SIZE is the message we receive from which we can infer if we got
minimized or not.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/w32_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 7f93cb67b1..1298c6dc90 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -991,6 +991,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, } // Window may have been minimized or restored + w32->opts->window_minimized = IsIconic(w32->window); + m_config_cache_write_opt(w32->opts_cache, + &w32->opts->window_minimized); signal_events(w32, VO_EVENT_WIN_STATE); update_display_info(w32); @@ -1613,9 +1616,6 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) reinit_window_state(w32); return VO_TRUE; } - case VOCTRL_GET_WIN_STATE: - *(int *)arg = IsIconic(w32->window) ? VO_WIN_STATE_MINIMIZED : 0; - return VO_TRUE; case VOCTRL_SET_CURSOR_VISIBILITY: w32->cursor_visible = *(bool *)arg; |