Reverting r1.242 - WM_NAME is ICCCM, not NET_WM , and it's not UTF8.

svn path=/trunk/kdebase/kwin/; revision=100452
This commit is contained in:
Luboš Luňák 2001-06-04 21:55:14 +00:00
parent 9c0f71e601
commit 7afe6d11c7

View file

@ -827,10 +827,10 @@ void Client::fetchName()
int count;
if ( XGetTextProperty( qt_xdisplay(), win, &tp, XA_WM_NAME) != 0 && tp.value != NULL ) {
if ( tp.encoding == XA_STRING )
s = QString::fromUtf8( (const char*) tp.value );
s = QString::fromLocal8Bit( (const char*) tp.value );
else if ( XmbTextPropertyToTextList( qt_xdisplay(), &tp, &text, &count) == Success &&
text != NULL && count > 0 ) {
s = QString::fromUtf8( text[0] );
s = QString::fromLocal8Bit( text[0] );
XFreeStringList( text );
}
XFree( tp.value );