spheras / desktopfolder

Bring your Desktop Back to Life
GNU General Public License v3.0
200 stars 40 forks source link

Drag & Drop on Free/Grid mode without Ctrl key #244

Closed spheras closed 5 years ago

spheras commented 5 years ago

Grid and Free arrangement modes allow the drag and drop features only when the Ctrl key is pressed. The idea of this issue is to cancel the movement of the icon when the mouse is outside the original window (allowing then the drag & drop), even if the mouse is over a different panel (like described in #104)

spheras commented 5 years ago

I added a new feature to start a drag/drop functionality when the arragement was free or grid, and the icon drag is over a different window (restoring the initial position of the icon, and starting a drag/drop). I couldn't make the drag/drop action be cancelled if the mouse was returned to the initial panel (I don't know why the Gtk.drag_cancel was not removing completely the drag action)