From eb5a83e1c110234b3e835b7a76d83e1ddaa7bfb5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 16 Jan 2015 23:38:47 +0100 Subject: x11: add --on-all-workspaces option and property Fixes #1469. --- player/command.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 14b3cac7c2..bfdc823018 100644 --- a/player/command.c +++ b/player/command.c @@ -2272,6 +2272,14 @@ static int mp_property_border(void *ctx, struct m_property *prop, &mpctx->opts->vo.border, mpctx); } +static int mp_property_all_workspaces(void *ctx, struct m_property *prop, + int action, void *arg) +{ + MPContext *mpctx = ctx; + return mp_property_vo_flag(prop, action, arg, VOCTRL_ALL_WORKSPACES, + &mpctx->opts->vo.all_workspaces, mpctx); +} + static int get_frame_count(struct MPContext *mpctx) { struct demuxer *demuxer = mpctx->demuxer; @@ -3309,6 +3317,7 @@ static const struct m_property mp_properties[] = { {"colormatrix-primaries", mp_property_primaries}, {"ontop", mp_property_ontop}, {"border", mp_property_border}, + {"on-all-workspaces", mp_property_all_workspaces}, {"framedrop", mp_property_framedrop}, {"gamma", mp_property_video_color}, {"brightness", mp_property_video_color}, -- cgit v1.2.3