Prevent selecting of hidden windows when using the present windows

filter feature.

svn path=/trunk/KDE/kdebase/workspace/; revision=897444
This commit is contained in:
Lucas Murray 2008-12-16 04:24:20 +00:00
parent 4cba8deecd
commit 84c28985fb

View file

@ -1286,6 +1286,8 @@ EffectWindow* PresentWindowsEffect::relativeWindow( EffectWindow *w, int xdiff,
next = NULL;
foreach( EffectWindow* e, m_motionManager.managedWindows() )
{
if( !m_windowData[e].visible )
continue;
QRectF eArea = m_motionManager.transformedGeometry( e );
if( eArea.intersects( detectRect ) &&
eArea.x() > wArea.x() )
@ -1319,6 +1321,8 @@ EffectWindow* PresentWindowsEffect::relativeWindow( EffectWindow *w, int xdiff,
next = NULL;
foreach( EffectWindow* e, m_motionManager.managedWindows() )
{
if( !m_windowData[e].visible )
continue;
QRectF eArea = m_motionManager.transformedGeometry( e );
if( eArea.intersects( detectRect ) &&
eArea.x() + eArea.width() < wArea.x() + wArea.width() )
@ -1357,6 +1361,8 @@ EffectWindow* PresentWindowsEffect::relativeWindow( EffectWindow *w, int xdiff,
next = NULL;
foreach( EffectWindow* e, m_motionManager.managedWindows() )
{
if( !m_windowData[e].visible )
continue;
QRectF eArea = m_motionManager.transformedGeometry( e );
if( eArea.intersects( detectRect ) &&
eArea.y() > wArea.y() )
@ -1390,6 +1396,8 @@ EffectWindow* PresentWindowsEffect::relativeWindow( EffectWindow *w, int xdiff,
next = NULL;
foreach( EffectWindow* e, m_motionManager.managedWindows() )
{
if( !m_windowData[e].visible )
continue;
QRectF eArea = m_motionManager.transformedGeometry( e );
if( eArea.intersects( detectRect ) &&
eArea.y() + eArea.height() < wArea.y() + wArea.height() )