From kde-commits Tue Dec 23 00:48:11 2008 From: Beat Wolf Date: Tue, 23 Dec 2008 00:48:11 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/pager Message-Id: <1229993291.305859.27210.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122999330232127 SVN commit 900492 by beatwolf: don't show windows that are on all dekstops multiple times in popup BUG:178518 M +6 -1 pager.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #900491:900492 @@ -1122,8 +1122,12 @@ QString subtext = QString(); int taskCounter = 0; int displayedTaskCounter = 0; + + QList windows; + foreach(KWindowInfo winInfo, m_windowInfo){ - if (winInfo.isOnDesktop(hoverDesktopNumber) || winInfo.onAllDesktops()) { + if ((winInfo.isOnDesktop(hoverDesktopNumber) || winInfo.onAllDesktops() ) + && !windows.contains(winInfo.win())) { bool active = (winInfo.win() == KWindowSystem::activeWindow()); if ((taskCounter < 4) || active){ QPixmap icon = KWindowSystem::icon(winInfo.win(), 16, 16, true); @@ -1136,6 +1140,7 @@ subtext += (active ? "" : "") + winInfo.visibleName() + (active ? "" : ""); displayedTaskCounter++; + windows.append(winInfo.win()); } taskCounter++; }