From 6554db47ab8860836cada64fb8b38315bd12ecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Tue, 17 Dec 2019 22:46:57 +0200 Subject: video/w32_common: follow updates to the ontop option instead of VOCTRL_ONTOP --- video/out/w32_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 1298c6dc90..83fbdaa512 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1578,14 +1578,13 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) if (changed_option == &vo_opts->fullscreen) { reinit_window_state(w32); + } else if (changed_option == &vo_opts->ontop) { + update_window_state(w32); } } return VO_TRUE; } - case VOCTRL_ONTOP: - update_window_state(w32); - return VO_TRUE; case VOCTRL_BORDER: update_window_style(w32); update_window_state(w32); -- cgit v1.2.3