diff options
author | Clément Bœsch <ubitux@gmail.com> | 2010-11-04 04:41:11 +0100 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-04 05:54:12 +0200 |
commit | 952f9b85a7f4d3140dde530585456cd0b42d258a (patch) | |
tree | 3ac8069c210a677ac5b00a620e0c1d292a04f251 /libvo/x11_common.c | |
parent | be95d4c131c77192f1033f051563ca2cc20e32b1 (diff) | |
download | mpv-952f9b85a7f4d3140dde530585456cd0b42d258a.tar.bz2 mpv-952f9b85a7f4d3140dde530585456cd0b42d258a.tar.xz |
options: move -name and -title to option struct
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index ffe5e8120b..655b1c69d0 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -706,11 +706,12 @@ void vo_x11_decoration(struct vo *vo, int d) void vo_x11_classhint(struct vo *vo, Window window, const char *name) { + struct MPOpts *opts = vo->opts; struct vo_x11_state *x11 = vo->x11; XClassHint wmClass; pid_t pid = getpid(); - wmClass.res_name = vo_winname ? vo_winname : name; + wmClass.res_name = opts->vo_winname ? opts->vo_winname : name; wmClass.res_class = "MPlayer"; XSetClassHint(x11->display, window, &wmClass); XChangeProperty(x11->display, window, x11->XA_NET_WM_PID, XA_CARDINAL, @@ -1308,6 +1309,7 @@ static int vo_x11_get_fs_type(int supported) */ int vo_x11_update_geometry(struct vo *vo) { + struct MPOpts *opts = vo->opts; struct vo_x11_state *x11 = vo->x11; unsigned depth, w, h; int dummy_int; @@ -1320,8 +1322,8 @@ int vo_x11_update_geometry(struct vo *vo) } XTranslateCoordinates(x11->display, x11->window, x11->rootwin, 0, 0, &vo->dx, &vo->dy, &dummy_win); - if (vo_wintitle) - XStoreName(x11->display, x11->window, vo_wintitle); + if (opts->vo_wintitle) + XStoreName(x11->display, x11->window, opts->vo_wintitle); return depth <= INT_MAX ? depth : 0; } |