1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

video/w32_common: follow updates to the ontop option instead of VOCTRL_ONTOP

This commit is contained in:
Jan Ekström 2019-12-17 22:46:57 +02:00
parent ee75908134
commit 6554db47ab

View File

@ -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);