[widget] Change RegisterDragDrop to be called on idle.

This is a low-priority init function that should not be called with
immediate dispatch to the current thread, for performance reasons.
Additionally, do not call RegisterDragDrop for hidden windows.
This commit is contained in:
Moonchild 2023-10-25 05:22:32 +02:00 committed by roytam1
commit f2b0066036
5 changed files with 21 additions and 7 deletions

View file

@ -1378,6 +1378,7 @@ class nsIWidget : public nsISupports
* Enables the dropping of files to a widget.
*/
virtual void EnableDragDrop(bool aEnable) = 0;
virtual nsresult AsyncEnableDragDrop(bool aEnable) = 0;
/**
* Enables/Disables system mouse capture.