From ee81bb74542b8198b35034208dca8c5ae2465528 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 21 Oct 2015 16:20:30 -0400 Subject: A couple quick fixes for desktop icons: 1) In the Applauncher plugin, have it send the removal signal if the file it is supposed to load does not exist. 2) Fix the loading of plugins - always go forwards when searching for a new spot - not backwards (will switch to backwards automatically as necessary). --- lumina-desktop/LDesktopPluginSpace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lumina-desktop/LDesktopPluginSpace.cpp') diff --git a/lumina-desktop/LDesktopPluginSpace.cpp b/lumina-desktop/LDesktopPluginSpace.cpp index abb16fc0..cb0cc75f 100644 --- a/lumina-desktop/LDesktopPluginSpace.cpp +++ b/lumina-desktop/LDesktopPluginSpace.cpp @@ -113,7 +113,7 @@ void LDesktopPluginSpace::addDesktopPlugin(QString plugID){ geom = findOpenSpot(geom.width(), geom.height() ); }else if(!ValidGeometry(plugID, gridToGeom(geom)) ){ //Find a new location for the plugin (saved location is invalid) - geom = findOpenSpot(geom.width(), geom.height(), geom.y(), geom.x(), true); //try to get it within the same general area (go backwards) + geom = findOpenSpot(geom.width(), geom.height(), geom.y(), geom.x(), false); //try to get it within the same general area first } if(geom.x() < 0 || geom.y() < 0){ qDebug() << "No available space for desktop plugin:" << plugID << " - IGNORING"; -- cgit