VirtualBox

Changeset 57292 in vbox


Ignore:
Timestamp:
Aug 12, 2015 1:20:14 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102051
Message:

DnD + Fe/Qt: Moved sending the mouse event after sending the drop event.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp

    r57288 r57292  
    655655    int rc = VINF_SUCCESS;
    656656
    657     /* Send a mouse event with released mouse buttons into the guest that triggers
    658      * the "drop" event in our proxy window on the guest. */
    659     AssertPtr(m_pSession);
    660     m_pSession->mouse().PutMouseEvent(0, 0, 0, 0, 0);
    661 
    662     /* Start getting the data from the source. Request and transfer data
    663      * from the source and display a modal progress dialog while doing this. */
     657    /* Indicate to the guest that we have dropped the data on the host.
     658     * The guest then will initiate the actual "drop" operation into our proxy on the guest. */
    664659    Assert(!m_dndSource.isNull());
    665660    CProgress progress = m_dndSource.Drop(strMIMEType,
    666661                                          UIDnDHandler::toVBoxDnDAction(dropAction));
    667 
    668662    LogFlowFunc(("Source: isOk=%RTbool\n", m_dndSource.isOk()));
    669663    if (m_dndSource.isOk())
    670664    {
     665        /* Send a mouse event with released mouse buttons into the guest that triggers
     666         * the "drop" event in our proxy window on the guest. */
     667        AssertPtr(m_pSession);
     668        m_pSession->mouse().PutMouseEvent(0, 0, 0, 0, 0);
     669
    671670        msgCenter().showModalProgressDialog(progress,
    672671                                            tr("Retrieving data ..."), ":/progress_dnd_gh_90px.png",
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette