Disable Motif Drag and Drop

I developed an application in X / Motif that has performance issues related to the standard Drag & Drop functionality provided by the toolbox. I already disabled the Drag & Drop protocol at the user interface level by setting the XmDRAG_NONE resources:

  • dragInitiatorProtocolStyle: XmDRAG_NONE
  • dragReceiverProtocolStyle: XmDRAG_NONE

This effectively disables the standard Drag & Drop HMI functions, but the properties / atoms (in _MOTIF_DRAG_WINDOW) associated with this functionality continue to be created in the root window every time widgets such as XmText (or others with Drag & Drop capabilities) are created by the application.

  • Is there a way to force disable Drag & Drop?

  • If not, is there a way to safely remove the drag & drop / atoms properties in the root window?

Thanks in advance.

+5
source share

All Articles