禁用 Motif 拖放功能
我在 X/Motif 中开发了一个应用程序,该应用程序存在与工具包提供的标准拖放功能相关的性能问题。我已经通过设置 XmDRAG_NONE 资源在用户界面级别禁用了拖放协议:
- DragInitiatorProtocolStyle: XmDRAG_NONE
- DragReceiverProtocolStyle: XmDRAG_NONE
这有效地禁用了拖放 HMI 标准功能,但与属性/原子(在 _MOTIF_DRAG_WINDOW 中)相关每次应用程序实例化诸如 XmText(或其他具有拖放功能的)小部件时,都会继续在根窗口中创建此功能。
有没有办法强制完全禁用拖放?
如果没有,是否有办法安全地删除根窗口中的拖放属性/原子?
提前致谢。
I have developed an application in X/Motif that has a performance issue related with the standard Drag&Drop functionality supplied by the toolkit. I have already disabled the Drag&Drop protocol at the level of the user interface by setting the XmDRAG_NONE resources:
- dragInitiatorProtocolStyle: XmDRAG_NONE
- dragReceiverProtocolStyle: XmDRAG_NONE
This effectively disables the Drag&Drop HMI standard features, but the properties / atoms’ (in _MOTIF_DRAG_WINDOW) related to this functionality continue to be created in the Root Window every time widgets such as XmText (or others with Drag&Drop capability) are instantiated by the application.
Is there a way to force a complete disable of the Drag&Drop?
If not, is there a way to safely remove the Drag&Drop properties/atoms in the Root Window?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论