I think moving windows to another desktop in desktop grid should not activate them. But just clicking on them should activate them.

BUG: 211546

svn path=/trunk/KDE/kdebase/workspace/; revision=1059393
This commit is contained in:
Martin Gräßlin 2009-12-06 14:22:57 +00:00
parent 21b30c7a37
commit 165e2edb08

View file

@ -427,7 +427,6 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
{ // Handle window moving
if( !wasWindowMove ) // Activate on move
{
effects->activateWindow( windowMove );
if( isUsingPresentWindows() && !windowMove->isOnAllDesktops() )
{
WindowMotionManager& manager = m_managers[ (windowMove->desktop()-1)*(effects->numScreens()) + windowMove->screen() ];
@ -572,13 +571,14 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
if( !wasWindowMove && !wasDesktopMove )
{
setCurrentDesktop( posToDesktop( me->pos() ));
if( windowMove )
effects->activateWindow( windowMove );
setActive( false );
}
if( windowMove )
{
if( wasWindowMove )
{
effects->activateWindow( windowMove ); // Just in case it was deactivated
if( isUsingPresentWindows() )
{
WindowMotionManager& manager = m_managers[ (windowMove->desktop()-1)*(effects->numScreens()) + windowMove->screen() ];