VirtualBox

Ignore:
Timestamp:
Jan 31, 2022 1:29:28 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149620
Message:

Shared Clipboard: Implemented backend callbacks and a dedicated backend context, together with a new testcase which mocks HGCM to also test the guest-side clipboard code (disabled by default for now). Work in progress, only tested on Linux so far [build fix].

File:
1 edited

Legend:

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

    r93496 r93497  
    18241824        return False;
    18251825
    1826     XSelectionRequestEvent* req =
    1827         XtGetSelectionRequest(widget, *atomSelection, (XtRequestId)NULL);
    1828 
    18291826    /* Is this the rigt selection (clipboard) we were asked for? */
    18301827    if (!clipIsSupportedSelectionType(pCtx, *atomSelection))
     
    18391836                                  pValReturn, pcLenReturn, piFormatReturn);
    18401837
    1841 
     1838#ifdef LOG_ENABLED
     1839    XSelectionRequestEvent* pReq =
     1840        XtGetSelectionRequest(widget, *atomSelection, (XtRequestId)NULL);
    18421841    LogFlowFunc(("returning pVBoxWnd=%#x, ownerWnd=%#x, reqWnd=%#x, %RTbool, rc=%Rrc\n",
    1843                  XtWindow(pCtx->pWidget), req->owner, req->requestor, RT_SUCCESS(rc), rc));
     1842                 XtWindow(pCtx->pWidget), pReq->owner, pReq->requestor, RT_SUCCESS(rc), rc));
     1843#endif
    18441844    return RT_SUCCESS(rc) ? True : False;
    18451845}
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