mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
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:
+1
-1
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user