Fix dropping file on launchbar empty space, it's broken after movement implementation.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 9 Oct 2016 21:16:33 +0000 (00:16 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 9 Oct 2016 21:16:33 +0000 (00:16 +0300)
plugins/launchtaskbar.c

index 55f62b2..d04ce62 100644 (file)
@@ -632,10 +632,12 @@ static gboolean on_launchbar_drag_motion(
             action = lb_atom_action; /* action was set above */
     }
     else if (fm_dnd_dest_is_target_supported(b->dd, target))
+    {
         action = fm_dnd_dest_get_default_action(b->dd, context, target);
-    else if (fi == NULL && PANEL_IS_LAUNCH_BUTTON(btn))
-        /* dropping on free place */
-        action = GDK_ACTION_COPY;
+        if (fi == NULL && PANEL_IS_LAUNCH_BUTTON(btn))
+            /* dropping on free place */
+            action = GDK_ACTION_COPY;
+    }
     gdk_drag_status(context, action, time);
     /* g_debug("launchbutton_drag_motion_event: act=%u",action); */
     return TRUE;