aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktopPluginSpace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LDesktopPluginSpace.h')
-rw-r--r--lumina-desktop/LDesktopPluginSpace.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/lumina-desktop/LDesktopPluginSpace.h b/lumina-desktop/LDesktopPluginSpace.h
index 6328b4de..b3c87ce4 100644
--- a/lumina-desktop/LDesktopPluginSpace.h
+++ b/lumina-desktop/LDesktopPluginSpace.h
@@ -141,6 +141,12 @@ private:
return 0;
}
+ void MovePlugin(LDPlugin* plug, QRect geom){
+ plug->setGeometry( geom );
+ plug->setFixedSize(geom.size()); //needed for some plugins
+ plug->savePluginGeometry(geom);
+ }
+
private slots:
void reloadPlugins(bool ForceIconUpdate = false);
@@ -196,10 +202,11 @@ protected:
valid = ValidGeometry(act.section("::::",1,50), geom);
}
if(valid){
- item->setGeometry(geom);
- item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins
+ MovePlugin(item, geom);
+ //item->setGeometry(geom);
+ //item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins
ev->acceptProposedAction();
- item->savePluginGeometry(geom); //save in pixel coords
+ //item->savePluginGeometry(geom); //save in pixel coords
}else{ ev->ignore(); } //invalid location
}else{
@@ -221,10 +228,11 @@ protected:
valid = ValidGeometry(act.section("::::",1,50), geom);
}
if(valid){
- item->setGeometry(geom);
- item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins
+ MovePlugin(item, geom);
+ //item->setGeometry(geom);
+ //item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins
ev->acceptProposedAction();
- item->savePluginGeometry(geom); //save in pixel coords
+ //item->savePluginGeometry(geom); //save in pixel coords
}else{ ev->ignore(); } //invalid location
}
}
bgstack15