From 113fc1977203c7709fd0bb5b7e4e34209b82cc31 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 3 Jul 2006 12:21:02 +0000 Subject: [PATCH] try setting both WM_NAME and _NET_WM_NAME svn: r3581 --- src/wxxt/src/Windows/Window.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wxxt/src/Windows/Window.cc b/src/wxxt/src/Windows/Window.cc index 88891b6c4f..0e8b9edf56 100644 --- a/src/wxxt/src/Windows/Window.cc +++ b/src/wxxt/src/Windows/Window.cc @@ -254,14 +254,15 @@ void wxWindow::SetTitle(char *title) net_wm_icon_name_atom = XInternAtom(XtDisplay(X->frame), "_NET_WM_ICON_NAME", FALSE); } -#if 0 + /* Set title and icon title as string sintead fo utf-8. If + a Window manager can handle UTF-8, we expect it to use the + _NET variants. */ XtVaSetValues(X->frame, XtNtitle, title, XtNiconName, title, - XtNtitleEncoding, utf8_atom, - XtNiconNameEncoding, utf8_atom, + XtNtitleEncoding, XA_STRING, + XtNiconNameEncoding, XA_STRING, NULL); -#endif { int i;