Created attachment 9045
Make Drag and Drop Functionality Optional
The attached patch makes the menu item drag and drop functionality optional by adding a new "allow-dnd" property. Default is set to yes so not to interfere with current functionality.
What's the rationale or use-case behind this patch/feature?
The request came in this forum post: https://forum.xfce.org/viewtopic.php?id=13404
Sorry, but that's not a very strong use-case in my opinion. While you can always click somewhere by accident I wouldn't make certain buttons optional.
Hi i am the one who posted https://forum.xfce.org/viewtopic.php?id=13404. When I was using XFCE with GTK2, left clicking and then dragging an item in the XFCE application menu did not show the drag-and-drop functionality. So it seems the functionality was added at some point. When I now try to left-click an item in the menu but accidentally drag the mouse a little, my click is 'lost', which makes the menu less usable for me.
Right-clicking a menu-item also has an optional behaviour, so it seems to me it would be consistent to make left-click behaviour optional as well.
In addition I can imagine this to be even more an issue for someone who's mouse movements and clicking are not very precise, such as a user with disability or elderly user.
The panel and xfdesktop (which you refer to with your link) both use the component garcon to display application menus. They share some of the code, but e.g. the right-click behavior is not configurable in the panel's application menu while it is with a hidden(!) property in xfdesktop.
The drag-and-drop functionality comes from garcon and has been there in Xfce 4.12 as well, so it's been around for more than 4 years:
I'm not a huge fan of all those options, especially the hidden ones, because they just tend to add code with very few people benefiting from them (because yeah, hidden options are by definition not very discoverable...)
Maybe some of the other devs see it differently and are willing to push this in. So I'll not object, but I'm also not convinced enough that many people need this to push it myself.
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/garcon/-/issues/10.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev