mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[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:
parent
38f8fde3e3
commit
f2b0066036
5 changed files with 21 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue