From a66ee67b28be1e9998eb18e4cfc74ed7a74e7dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 17 Dec 2007 17:27:17 +0000 Subject: [PATCH] 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 --- effects/desktopgrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/desktopgrid.cpp b/effects/desktopgrid.cpp index 51c78f3b93..3950c58680 100644 --- a/effects/desktopgrid.cpp +++ b/effects/desktopgrid.cpp @@ -503,10 +503,10 @@ void DesktopGridEffect::windowInputMouseEvent( Window, QEvent* e ) 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()); - if( w != NULL && w->isMovable()) + if( w != NULL ) { if( w->isOnAllDesktops()) effects->windowToDesktop( w, posToDesktop( me->pos()));