GNOME Bugzilla – Bug 714993
Cannot use both ClutterClickAction and ClutterDragAction in an actor at the same time
Last modified: 2021-06-10 11:32:23 UTC
Created attachment 261221 [details] [review] Changes in clutter-click-action.h from 1.8 to 1.10 Hello, After my distribution stabilized clutter-1.12 my project did not work anymore. I was not able to drag'n'drop any of my actors. So I rewrote my project from scratch and now I'm at the point to implement drag'n'drop and it is still not working. All actors have in common that I attached a ClutterClickAction before. The click event of ClutterClickAction has always won over "drag-begin" of ClutterDragAction. That means that "drag-begin" was never emitted nor was its virtual function called. As soon as I removed ClutterClickAction from the actors drag'n'drop worked as expected. Then I check what have changed between versions 1.8 to 1.12 and 1.8 to 1.10. As you can see in the attachment (clutter-click-action_1.8_to_1.10.patch) the only lines changed are these one where TRUE and FALSE have been replaced with CLUTTER_EVENT_STOP and CLUTTER_EVENT_PROPAGATE. All "FALSE" have been replace with "CLUTTER_EVENT_PROPAGATE" and "TRUE" with "CLUTTER_EVENT_STOP". Except for the last line in function "on_captured_event". I do not know if it is intended or a mistake but after I changed this line to match all other replacements ClutterClickAction and ClutterDragAction can both be added to the actors and are working. If it was intended I have a question ;) How should I use ClutterClickAction and ClutterDragAction in the same actor? Regards, Stephan Haller
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of clutter, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a ticket at https://gitlab.gnome.org/GNOME/clutter/-/issues/ Thank you for your understanding and your help.