summaryrefslogtreecommitdiff
path: root/src
diff options
authorDidier Roche <didier.roche@canonical.com>2011-01-28 11:30:40 +0100
committerDidier Roche <didier.roche@canonical.com>2011-01-28 11:30:40 +0100
commitd0769b125519a5ca935fe663a5b685b68f842378 (patch)
tree6175bef36823facb52083dedf85498b8f5dc6810 /src
parentc25c21944e7390e0a775ab85e1e8acd8b268267b (diff)
don't initiate dragging on special icons as you can't reorganize them (LP: #709119)
Fixes LP: #709119 (bzr r798.2.1)
Diffstat (limited to 'src')
-rw-r--r--src/Launcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Launcher.cpp b/src/Launcher.cpp
index 165c1d517..8e0f82646 100644
--- a/src/Launcher.cpp
+++ b/src/Launcher.cpp
@@ -1886,7 +1886,9 @@ void Launcher::RecvMouseDrag(int x, int y, int dx, int dy, unsigned long button_
{
LauncherIcon *drag_icon = MouseIconIntersection ((int) (GetGeometry ().x / 2.0f), y);
- if (drag_icon)
+ if (drag_icon
+ && (drag_icon->Type () == LauncherIcon::TYPE_FAVORITE
+ || drag_icon->Type () == LauncherIcon::TYPE_APPLICATION))
{
StartIconDrag (drag_icon);
_launcher_action_state = ACTION_DRAG_ICON;