VirtualBox

Changeset 55571 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Apr 30, 2015 5:04:37 PM (10 years ago)
Author:
vboxsync
Message:

DnD: Simplified cancellation logic.

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r55422 r55571  
    14241424    /*
    14251425     * Note: Don't clear this->lstAllowedFormats at the moment, as this value is initialized
    1426      *       on class creation. We might later want to modify the allowed formats in runtime,
     1426     *       on class creation. We might later want to modify the allowed formats at runtime,
    14271427     *       so keep this in mind when implementing this.
    14281428     */
     
    16651665             * don't support the stuff we do on the guest side, so make sure we
    16661666             * don't process invalid messages forever. */
    1667             if (cMsgSkippedInvalid++ > 3)
     1667            if (rc == VERR_INVALID_PARAMETER)
     1668                cMsgSkippedInvalid++;
     1669            if (cMsgSkippedInvalid > 32)
    16681670            {
    16691671                LogRel(("DnD: Too many invalid/skipped messages from host, exiting ...\n"));
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDragAndDrop.cpp

    r55556 r55571  
    552552            }
    553553
    554 #if 0
     554#if 0 /* Not used yet. */
    555555            if (pCtx->uProtocol >= XXX)
    556556            {
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r55459 r55571  
    11841184     * Do we have a new window which now is under the cursor?
    11851185     */
    1186     if (   wndCursor != m_wndCur 
     1186    if (   wndCursor != m_wndCur
    11871187        && newVer    != -1)
    11881188    {
     
    13381338    if (RT_UNLIKELY(xrc == 0))
    13391339    {
    1340         logError(("Error sending SelectionNotify event to window=%#x: %s\n", 
     1340        logError(("Error sending SelectionNotify event to window=%#x: %s\n",
    13411341                  s.xselection.requestor, gX11->xErrorToString(xrc).c_str()));
    13421342    }
     
    14481448                }
    14491449
    1450                 /* 
     1450                /*
    14511451                 * Acknowledge the event by sending a status message back to the window.
    14521452                 */
     
    14661466                if (RT_UNLIKELY(xRc == 0))
    14671467                {
    1468                     logError(("Error sending enter XA_XdndStatus to current window=%#x: %s\n", 
     1468                    logError(("Error sending enter XA_XdndStatus to current window=%#x: %s\n",
    14691469                              m_wndCur, gX11->xErrorToString(xRc).c_str()));
    14701470                }
     
    14921492                if (RT_UNLIKELY(xRc == 0))
    14931493                {
    1494                     logError(("Error sending position XA_XdndStatus to current window=%#x: %s\n", 
     1494                    logError(("Error sending position XA_XdndStatus to current window=%#x: %s\n",
    14951495                              m_wndCur, gX11->xErrorToString(xRc).c_str()));
    14961496                }
     
    16911691                    if (RT_UNLIKELY(xrc == 0))
    16921692                    {
    1693                         logError(("Error sending XA_XdndFinished to proxy window=%#x: %s\n", 
     1693                        logError(("Error sending XA_XdndFinished to proxy window=%#x: %s\n",
    16941694                                  m_wndProxy, gX11->xErrorToString(xrc).c_str()));
    16951695                    }
     
    23262326            if (rc == VERR_INVALID_PARAMETER)
    23272327                cMsgSkippedInvalid++;
    2328             if (cMsgSkippedInvalid > 3)
     2328            if (cMsgSkippedInvalid > 32)
    23292329            {
    23302330                LogRel(("DnD: Too many invalid/skipped messages from host, exiting ...\n"));
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