From 0a92241212238ef6bf06bfd7d892521c8c2880ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 30 Jan 2004 15:24:46 +0000 Subject: [PATCH] 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 --- client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 667e215656..dc311fbff4 100644 --- a/client.cpp +++ b/client.cpp @@ -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