aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp b/src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp
index f4cf2cfe..41a1017d 100644
--- a/src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktopPluginSpace.cpp
@@ -125,9 +125,11 @@ void LDesktopPluginSpace::addDesktopPlugin(QString plugID){
//Now get the saved geometry for the plugin
QRect geom = plug->gridGeometry(); //grid coordinates
if(geom.isNull()){
+ //Try the old format (might be slight drift between sessions if the grid size changes)
geom = plug->loadPluginGeometry(); //in pixel coords
if(!geom.isNull()){ geom = geomToGrid(geom); } //convert to grid coordinates
}
+ if(DEBUG){ qDebug() << "Saved plugin geom:" << geom << plugID; }
//Now determine the position to put it
if(geom.isNull()){
//No previous location - need to calculate initial geom
bgstack15