NET_WM saves in utf-8:
- s = QString::fromLocal8Bit( (const char*) tp.value ); + s = QString::fromUtf8( (const char*) tp.value ); svn path=/trunk/kdebase/kwin/; revision=99426
This commit is contained in:
parent
03d449b0b8
commit
b16109eb07
1 changed files with 2 additions and 2 deletions
|
@ -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::fromLocal8Bit( (const char*) tp.value );
|
||||
s = QString::fromUtf8( (const char*) tp.value );
|
||||
else if ( XmbTextPropertyToTextList( qt_xdisplay(), &tp, &text, &count) == Success &&
|
||||
text != NULL && count > 0 ) {
|
||||
s = QString::fromLocal8Bit( text[0] );
|
||||
s = QString::fromUtf8( text[0] );
|
||||
XFreeStringList( text );
|
||||
}
|
||||
XFree( tp.value );
|
||||
|
|
Loading…
Reference in a new issue