summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-12-05 23:17:34 +0100
committerwm4 <wm4@mplayer2.org>2011-12-06 20:32:33 +0100
commit82118dc35edfbf9b6714e1e4e6b1823fc3205ff7 (patch)
tree19c0d5741f41ffb18d9da6662c27e72b8d1943a1
parent3df6dc718acc762df8f9fc5c44735aec795b7020 (diff)
downloadmpv-82118dc35edfbf9b6714e1e4e6b1823fc3205ff7.tar.bz2
mpv-82118dc35edfbf9b6714e1e4e6b1823fc3205ff7.tar.xz
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.
-rw-r--r--libvo/video_out.c2
-rw-r--r--libvo/x11_common.c2
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);