VirtualBox

Changeset 13523 in vbox


Ignore:
Timestamp:
Oct 23, 2008 9:21:21 AM (16 years ago)
Author:
vboxsync
Message:

HostServices/SharedClipboard (x11): handle certain errors and timeouts better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/x11.cpp

    r13509 r13523  
    14011401            /* No data available. */
    14021402            *pcbActual = 0;
    1403             return VINF_SUCCESS;
     1403            return VERR_NO_DATA;  /* The guest thinks we have data and we don't */
    14041404        }
    14051405        /* Only one of the host and the guest should ever be waiting. */
     
    14131413        g_ctx.requestBufferSize = cb;
    14141414        g_ctx.requestActualSize = pcbActual;
     1415        /* Initially set the size of the data read to zero in case we fail
     1416         * somewhere. */
     1417        *pcbActual = 0;
    14151418        /* Send out a request for the data to the current clipboard owner */
    14161419        XtGetSelectionValue(g_ctx.widget, g_ctx.atomClipboard, g_ctx.atomHostTextFormat,
     
    14211424        if (RTSemEventWait(g_ctx.waitForData, CLIPBOARDTIMEOUT) != VINF_SUCCESS)
    14221425        {
    1423             LogRel(("vboxClipboardReadDataFromClient: XtGetSelectionValue failed to complete within %d milliseconds\n", CLIPBOARDTIMEOUT));
    1424             g_ctx.hostTextFormat = INVALID;
    1425             g_ctx.hostBitmapFormat = INVALID;
     1426            /* No need to polute the release log for this. */
     1427            // LogRel(("vboxClipboardReadDataFromClient: XtGetSelectionValue failed to complete within %d milliseconds\n", CLIPBOARDTIMEOUT));
     1428            /* A time out can legitimately occur if a client is temporarily too busy to answer fast */
     1429            // g_ctx.hostTextFormat = INVALID;
     1430            // g_ctx.hostBitmapFormat = INVALID;
    14261431            g_ctx.waiter = 0;
    14271432            return VERR_TIMEOUT;
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