x11: set window titles as UTF-8
commit3df6dc718acc762df8f9fc5c44735aec795b7020
authorwm4 <wm4@mplayer2.org>
Tue, 6 Dec 2011 17:48:31 +0000 (6 18:48 +0100)
committerwm4 <wm4@mplayer2.org>
Tue, 6 Dec 2011 19:32:33 +0000 (6 20:32 +0100)
tree350b6fd105d3a65532348e2729d33238c509718b
parentd4de92e80897abb64dc8ccecb7823cbe291bb52d
x11: set window titles as UTF-8

Always set the X11 window title properties as UTF-8. This is a bit tricky
for X11 window properties which are not specified to use UTF-8, such as
WM_NAME.

We also properly set WM_ICON_NAME, which means the window caption and the
text used in the task bar (of the WM has one) will be the same on most
window managers. Before this commit, WM_ICON_NAME was always hardcoded to
"MPlayer", even if --title or --use-filename-title was used.

Also update the window title only on reconfigure, like it is done in
mplayer-svn commit 34380.
libvo/x11_common.c
libvo/x11_common.h