Changeset 13523 in vbox
- Timestamp:
- Oct 23, 2008 9:21:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/x11.cpp
r13509 r13523 1401 1401 /* No data available. */ 1402 1402 *pcbActual = 0; 1403 return V INF_SUCCESS;1403 return VERR_NO_DATA; /* The guest thinks we have data and we don't */ 1404 1404 } 1405 1405 /* Only one of the host and the guest should ever be waiting. */ … … 1413 1413 g_ctx.requestBufferSize = cb; 1414 1414 g_ctx.requestActualSize = pcbActual; 1415 /* Initially set the size of the data read to zero in case we fail 1416 * somewhere. */ 1417 *pcbActual = 0; 1415 1418 /* Send out a request for the data to the current clipboard owner */ 1416 1419 XtGetSelectionValue(g_ctx.widget, g_ctx.atomClipboard, g_ctx.atomHostTextFormat, … … 1421 1424 if (RTSemEventWait(g_ctx.waitForData, CLIPBOARDTIMEOUT) != VINF_SUCCESS) 1422 1425 { 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; 1426 1431 g_ctx.waiter = 0; 1427 1432 return VERR_TIMEOUT;
Note:
See TracChangeset
for help on using the changeset viewer.