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.
This commit is contained in:
wm4 2011-12-05 23:17:34 +01:00
parent 3df6dc718a
commit 82118dc35e
2 changed files with 2 additions and 2 deletions

View File

@ -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";
}
}

View File

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