From df7d5a1689e6f39c00e6ff86829921d1fa6db095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Tue, 17 Dec 2019 22:49:58 +0200 Subject: video/w32_common: follow updates to the border option instead of VOCTRL_BORDER --- video/out/w32_common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 83fbdaa512..a72585dab3 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1580,15 +1580,14 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) reinit_window_state(w32); } else if (changed_option == &vo_opts->ontop) { update_window_state(w32); + } else if (changed_option == &vo_opts->border) { + update_window_style(w32); + update_window_state(w32); } } return VO_TRUE; } - case VOCTRL_BORDER: - update_window_style(w32); - update_window_state(w32); - return VO_TRUE; case VOCTRL_GET_UNFS_WINDOW_SIZE: { int *s = arg; -- cgit v1.2.3