Skip to content

Commit d34d050

Browse files
na-na-hidancingmirrors
authored andcommitted
options: handle runtime wid change
Add UPDATE_VO flag to the --wid option so that the window embedding can be changed at runtime without needing to reset another UPDATE_VO option.
1 parent 90f4f44 commit d34d050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options/options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static const m_option_t mp_vo_opt_list[] = {
143143
{"video-margin-ratio-bottom", OPT_FLOAT(margin_y[1]), M_RANGE(0.0, 1.0)},
144144
{"video-unscaled", OPT_CHOICE(unscaled,
145145
{"no", 0}, {"yes", 1}, {"downscale-big", 2})},
146-
{"wid", OPT_INT64(WinID)},
146+
{"wid", OPT_INT64(WinID), .flags = UPDATE_VO},
147147
{"screen", OPT_CHOICE(screen_id, {"default", -1}), M_RANGE(0, 32)},
148148
{"screen-name", OPT_STRING(screen_name)},
149149
{"fs-screen", OPT_CHOICE(fsscreen_id, {"all", -2}, {"current", -1}),

0 commit comments

Comments
 (0)