I want to turn off certain operations while a module is being dragged around a patch. Is there a good way for a module to know when that is happening?
You can try APP->event->getDraggedWidget() which should return the module widget when the module is dragged.
I wonder what that returns when dragging a selection. I’m guessing it’s just the module that was under the mouse at the start of the drag. That doesn’t help to know if this module is being dragged (except when it’s the sole potato sack).