From afed8c649efb8722a8f3a8ef6dd7c10c4e92241c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 12 Oct 2015 12:32:44 -0400 Subject: Fix a mapping issue with the mouse position for the ResizeMenu. --- libLumina/LuminaUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp index 27083611..4c90c9ef 100644 --- a/libLumina/LuminaUtils.cpp +++ b/libLumina/LuminaUtils.cpp @@ -752,22 +752,22 @@ void ResizeMenu::mouseMoveEvent(QMouseEvent *ev){ // The "-2" in the sizing below accounts for the menu margins switch(resizeSide){ case TOP: - geom.setTop(ev->pos().y()); + geom.setTop(this->mapToGlobal(ev->pos()).y()); this->setGeometry(geom); if(contents!=0){ contents->setFixedSize(QSize(geom.width()-2, geom.height()-2)); } break; case BOTTOM: - geom.setBottom(ev->pos().y()); + geom.setBottom( this->mapToGlobal(ev->pos()).y()); this->setGeometry(geom); if(contents!=0){ contents->setFixedSize(QSize(geom.width()-2, geom.height()-2)); } break; case LEFT: - geom.setLeft(ev->pos().x()); + geom.setLeft(this->mapToGlobal(ev->pos()).x()); this->setGeometry(geom); if(contents!=0){ contents->setFixedSize(QSize(geom.width()-2, geom.height()-2)); } break; case RIGHT: - geom.setRight(ev->pos().x()); + geom.setRight(this->mapToGlobal(ev->pos()).x()); this->setGeometry(geom); if(contents!=0){ contents->setFixedSize(QSize(geom.width()-2, geom.height()-2)); } break; -- cgit