Make unobscuredRegion() ignore windows that cannot be visible on the same

virtual desktop like the window. Prevent B2's titlebars affecting each
other if they're on different virtual desktops.

svn path=/trunk/kdebase/kwin/; revision=263255
This commit is contained in:
Luboš Luňák 2003-10-30 18:12:23 +00:00
parent abdfd596b2
commit 78a31324a0

View file

@ -136,6 +136,18 @@ QRegion Bridge::unobscuredRegion( const QRegion& r ) const
it != stacking_order.end();
++it )
{
if( !(*it)->isShown( true ))
continue; // these don't obscure the window
if( c->isOnAllDesktops())
{
if( !(*it)->isOnCurrentDesktop())
continue;
}
else
{
if( !(*it)->isOnDesktop( c->desktop()))
continue;
}
/* the clients all have their mask-regions in local coords
so we have to translate them to a shared coord system
we choose ours */