VirtualBox

Changeset 102826 in vbox


Ignore:
Timestamp:
Jan 10, 2024 5:52:33 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161018
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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-x11.h

    r102824 r102826  
    116116    /** Our callback table to use. */
    117117    SHCLCALLBACKS    Callbacks;
    118     /** Is an X server actually available? */
     118    /** Is an X server actually available?
     119     *  Needed for non-interactive systems (i.e. servers) where X11 depedencies are installed,
     120     *  but no X11 server is actually running. */
    119121    bool             fHaveX11;
    120122    /** The X Toolkit application context structure. */
  • 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.

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