mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02: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:
parent
3df6dc718a
commit
82118dc35e
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user