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:
parent
4cba8deecd
commit
84c28985fb
1 changed files with 8 additions and 0 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue