From e001fdff3360c94d803a5bfac1300570643556e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 29 Oct 2009 17:02:41 +0000 Subject: [PATCH] Hide the desktop windows from other virtual desktops in presentwindows. That can happen when option activity per desktop is set. BUG: 212065 svn path=/trunk/KDE/kdebase/workspace/; revision=1042342 --- effects/presentwindows/presentwindows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 928ec0d2a7..58e77c3e32 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -281,6 +281,10 @@ void PresentWindowsEffect::prePaintWindow( EffectWindow *w, WindowPrePaintData & w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DELETE ); } + // desktop windows on other desktops (Plasma activity per desktop) should not be painted + if( w->isDesktop() && !w->isOnCurrentDesktop() ) + w->disablePainting( EffectWindow::PAINT_DISABLED_BY_DESKTOP ); + if( m_motionManager.isManaging( w )) data.setTransformed(); // We will be moving this window }