From f5dd7d71852fc0dadb82ba1cc55ba1c1a81b36c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 18 Jan 2010 19:06:09 +0000 Subject: [PATCH] Don't manage new windows which should not be shown in desktop grid (such as panels). svn path=/trunk/KDE/kdebase/workspace/; revision=1076727 --- effects/desktopgrid/desktopgrid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 90e6921e37..d4c8f3c6a1 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -368,6 +368,8 @@ void DesktopGridEffect::windowAdded( EffectWindow* w ) return; if( isUsingPresentWindows() ) { + if( w->isDesktop() || w->isDock() || !w->visibleInClientGroup() ) + return; // don't add if( w->isOnAllDesktops() ) { for( int i=0; inumberOfDesktops(); i++ )