aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-12 12:32:44 -0400
committerKen Moore <moorekou@gmail.com>2015-10-12 12:32:44 -0400
commitafed8c649efb8722a8f3a8ef6dd7c10c4e92241c (patch)
treed4936e98fb297b8253acb1c1c78a06c0126c08c6
parentAdd a process verification check to the LuminaUtils functions for running ext... (diff)
downloadlumina-afed8c649efb8722a8f3a8ef6dd7c10c4e92241c.tar.gz
lumina-afed8c649efb8722a8f3a8ef6dd7c10c4e92241c.tar.bz2
lumina-afed8c649efb8722a8f3a8ef6dd7c10c4e92241c.zip
Fix a mapping issue with the mouse position for the ResizeMenu.
-rw-r--r--libLumina/LuminaUtils.cpp8
1 files 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;
bgstack15