mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=721762 don't startDragSession when invokeDragSession will fail r=enndeakin
--HG-- extra : transplant_source : f%A7%A13%B1%C1%5E%A2%3B%D2C%1F%AC%E5%A2%92%13G0%9B
This commit is contained in:
parent
3ca6d13e3c
commit
87bba57d29
@ -345,6 +345,8 @@ nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
|
||||
mSourceRegion = nsnull;
|
||||
|
||||
if (context) {
|
||||
StartDragSession();
|
||||
|
||||
// GTK uses another hidden window for receiving mouse events.
|
||||
mGrabWidget = gtk_grab_get_current();
|
||||
if (mGrabWidget) {
|
||||
@ -361,8 +363,6 @@ nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
|
||||
|
||||
gtk_target_list_unref(sourceList);
|
||||
|
||||
StartDragSession();
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user