People have strange ideas ... filter out unprintable characters from window

captions.
CCMAIL: 68882-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=269522
This commit is contained in:
Luboš Luňák 2003-11-25 14:55:15 +00:00
parent 897e67f79a
commit 693d7d77c1

View file

@ -1149,6 +1149,11 @@ void Client::fetchName()
if ( s != cap_normal )
{
bool reset_name = cap_normal.isEmpty();
for( unsigned int i = 0;
i < s.length();
++i )
if( !s[ i ].isPrint())
s[ i ] = ' ';
cap_normal = s;
bool was_suffix = ( !cap_suffix.isEmpty());
cap_suffix = QString::null;