From 352a2de89ab3f62ede5ddb8ecc666a670e8c6729 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sun, 17 Jan 2010 03:02:44 +0000 Subject: [PATCH] always store dragpoint in mousePressEvent, disregarding the button; reset mouseButton_ in mouseMoveEvent only if action is actually taken. CCBUG 221997 svn path=/trunk/KDE/kdebase/workspace/; revision=1075951 --- clients/oxygen/oxygenclient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index a981d907f9..97a5cb6056 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1434,13 +1434,13 @@ namespace Oxygen QPoint point = event->pos(); if( itemClicked( point ) < 0 ) return false; + dragPoint_ = point; mouseButton_ = event->button(); bool accepted( false ); if( buttonToWindowOperation( mouseButton_ ) == ClientGroupDragOp ) { - dragPoint_ = point; accepted = true; } else if( buttonToWindowOperation( mouseButton_ ) == OperationsOp ) { @@ -1555,12 +1555,12 @@ namespace Oxygen ); } + // reset button + mouseButton_ = Qt::NoButton; accepted = true; } - // reset button - mouseButton_ = Qt::NoButton; return accepted; }