VirtualBox

Changeset 102826 in vbox for trunk/src


Ignore:
Timestamp:
Jan 10, 2024 5:52:33 PM (13 months ago)
Author:
vboxsync
Message:

Shared Clipboard/X11: Don't report an error in ShClX11ReadDataFromX11Async() + ShClX11WriteDataToX11Async() if an X11 server is not running (like we do with other APIs as well). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r102825 r102826  
    26192619
    26202620/**
    2621  * Reads the X11 clipboard (asynchronously).
     2621 * Reads from the X11 clipboard (asynchronously).
    26222622 *
    26232623 * @returns VBox status code.
    2624  * @retval  VERR_NO_DATA if format is supported but no data is available currently.
    2625  * @retval  VERR_NOT_IMPLEMENTED if the format is not implemented.
    26262624 * @param   pCtx                Context data for the clipboard backend.
    26272625 * @param   uFmt                The format that the VBox would like to receive the data in.
     
    26382636     */
    26392637    if (!pCtx->fHaveX11)
    2640         return VERR_NO_DATA;
     2638        return VINF_SUCCESS;
    26412639
    26422640    int rc = VINF_SUCCESS;
     
    27362734 *
    27372735 * @returns VBox status code.
    2738  * @retval  VERR_NOT_AVAILABLE the the X11 clipboard is not available.
    2739  * @retval  VERR_NOT_IMPLEMENTED if the format is not implemented.
    27402736 * @param   pCtx                Context data for the clipboard backend.
    27412737 * @param   uFmts               The format(s) to write.
     
    27582754     */
    27592755    if (!pCtx->fHaveX11)
    2760         return VERR_NOT_AVAILABLE;
     2756        return VINF_SUCCESS;
    27612757
    27622758    int rc = ShClCacheSetMultiple(&pCtx->Cache, uFmts, pvBuf, cbBuf);
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