Allow moving of even non-movable windows between virtual desktops using the middle

mouse button (and also right button, newly, I guess that one is easier to use).
BUG: 153931


svn path=/trunk/KDE/kdebase/workspace/; revision=749711
This commit is contained in:
Luboš Luňák 2007-12-17 17:27:17 +00:00
parent e173e55c8e
commit a66ee67b28

View file

@ -503,10 +503,10 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e )
effects->setElevatedWindow( window_move, true ); effects->setElevatedWindow( window_move, true );
} }
} }
else if( me->buttons() == Qt::MidButton && window_move == NULL ) else if(( me->buttons() == Qt::MidButton || me->buttons() == Qt::RightButton ) && window_move == NULL )
{ {
EffectWindow* w = windowAt( me->pos()); EffectWindow* w = windowAt( me->pos());
if( w != NULL && w->isMovable()) if( w != NULL )
{ {
if( w->isOnAllDesktops()) if( w->isOnAllDesktops())
effects->windowToDesktop( w, posToDesktop( me->pos())); effects->windowToDesktop( w, posToDesktop( me->pos()));