VirtualBox

Ignore:
Timestamp:
May 4, 2015 12:38:57 PM (10 years ago)
Author:
vboxsync
Message:

DnD:

  • Overhauled "dropped files" directory + general file handling: Keep the directories/files open when doing the actual transfers (only protocol >= 2)
  • Unified "dropped files" directory creation/rollback handling for guest/host parts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/DragAndDrop/service.cpp

    r55549 r55640  
    712712        if (m_clientMap.size()) /* At least one client on the guest connected? */
    713713        {
    714             /*
    715              * Did the host call something which needs immediate processing?
    716              * Prepend the message instead of appending to the command queue then.
    717              */
    718             bool fAppend;
    719             switch (u32Function)
    720             {
    721                 /* Cancelling the drag'n drop operation has higher priority than
    722                  * processing already buffered messages. */
    723                 case DragAndDropSvc::HOST_DND_HG_EVT_CANCEL:
    724                     fAppend = false;
    725                     break;
    726 
    727                 default:
    728                     fAppend = true;
    729                     break;
    730             }
    731 
    732             /*
    733              * If we prepending the message (instead of appending) this mean we need
    734              * to re-schedule the message queue in order to get the new command executed as
    735              * soon as possible.
    736              */
    737             bool fReschedule = !fAppend;
    738 
    739             rc = m_pManager->addMessage(u32Function, cParms, paParms, fAppend);
    740             if (   RT_SUCCESS(rc)
    741                 && fReschedule)
    742             {
    743                 rc = m_pManager->doReschedule();
    744             }
    745 
     714            rc = m_pManager->addMessage(u32Function, cParms, paParms, true /* fAppend */);
    746715            if (RT_SUCCESS(rc))
    747716            {
Note: See TracChangeset for help on using the changeset viewer.

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