Don't try to find unique window name for special windows. It looks stupid

to have main icemon window with title 'icemon <2>' just because 'icemon'
was taken by topmenu.

svn path=/trunk/kdebase/kwin/; revision=283828
icc-effect-5.14.5
Luboš Luňák 2004-01-30 15:24:46 +00:00
parent 1f3ee9b39c
commit 0a92241212
1 changed files with 2 additions and 2 deletions

View File

@ -1150,7 +1150,7 @@ void Client::showContextHelp()
Fetches the window's caption (WM_NAME property). It will be
stored in the client's caption().
*/
KWIN_COMPARE_PREDICATE( FetchNameInternalPredicate, const Client*, cl != value && cl->caption() == value->caption());
KWIN_COMPARE_PREDICATE( FetchNameInternalPredicate, const Client*, (!cl->isSpecialWindow() || cl->isToolbar()) && cl != value && cl->caption() == value->caption());
void Client::fetchName()
{
@ -1171,7 +1171,7 @@ void Client::fetchName()
cap_normal = s;
bool was_suffix = ( !cap_suffix.isEmpty());
cap_suffix = QString::null;
if ( workspace()->findClient( FetchNameInternalPredicate( this )))
if ( ( !isSpecialWindow() || isToolbar()) && workspace()->findClient( FetchNameInternalPredicate( this )))
{
int i = 2;
do