From 0654c0d3b7bdf8df8625df6fb4b11c18d1bd3a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 24 Nov 2003 14:25:47 +0000 Subject: [PATCH] Don't compare with itself when searching for other windows belonging to the app. svn path=/trunk/kdebase/kwin/; revision=269295 --- activation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activation.cpp b/activation.cpp index ce68a9d431..cac87bdd4d 100644 --- a/activation.cpp +++ b/activation.cpp @@ -617,7 +617,7 @@ KWIN_COMPARE_PREDICATE( SameApplicationActiveHackPredicate, const Client*, // ignore already existing splashes, toolbars, utilities, menus and topmenus, // as the app may show those before the main window !cl->isSplash() && !cl->isToolbar() && !cl->isTopMenu() && !cl->isUtility() && !cl->isMenu() - && Client::belongToSameApplication( cl, value, true )); + && Client::belongToSameApplication( cl, value, true ) && cl != value); Time Client::readUserTimeMapTimestamp( const KStartupInfoData* asn_data, const SessionInfo* session ) const