From 82118dc35edfbf9b6714e1e4e6b1823fc3205ff7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 5 Dec 2011 23:17:34 +0100 Subject: [PATCH] libvo: change default window title to "mplayer2" Also change the WM_CLASS "application class" string from "MPlayer" to "mplayer2". This string is visible as application name in Gnome 3. --- libvo/video_out.c | 2 +- libvo/x11_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvo/video_out.c b/libvo/video_out.c index 8c2f551e4c..2333afcb80 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -560,7 +560,7 @@ const char *vo_get_window_title(struct vo *vo) if (vo->opts->vo_wintitle) { return vo->opts->vo_wintitle; } else { - return "MPlayer"; + return "mplayer2"; } } diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 2c7572e8b1..cdbbc213b5 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -715,7 +715,7 @@ void vo_x11_classhint(struct vo *vo, Window window, const char *name) pid_t pid = getpid(); wmClass.res_name = opts->vo_winname ? opts->vo_winname : (char *)name; - wmClass.res_class = "MPlayer"; + wmClass.res_class = "mplayer2"; XSetClassHint(x11->display, window, &wmClass); XChangeProperty(x11->display, window, x11->XA_NET_WM_PID, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &pid, 1);