VirtualBox

Ignore:
Timestamp:
Dec 9, 2019 1:21:55 PM (5 years ago)
Author:
vboxsync
Message:

SharedClipboardSvc,Vbgl: Reviewed and adjusted the handling of the VBOX_SHCL_GUEST_FN_REPORT_FORMATS message, paddling back the parameter changes from the 6.1 dev cycle and fixing a couple of bugs introduced. Also documented the message and renamed it to a more sensible name. Dropped the new Vbgl method, renaming the old one. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp

    r82480 r82513  
    175175 * Tell the host that new clipboard formats are available.
    176176 *
    177  * @param pCtx                  Our context information.
    178  * @param Formats               The formats to report.
    179  */
    180 DECLCALLBACK(void) ShClX11ReportFormatsCallback(PSHCLCONTEXT pCtx, SHCLFORMATS Formats)
     177 * @param   pCtx            Our context information.
     178 * @param   fFormats        The formats to report.
     179 */
     180DECLCALLBACK(void) ShClX11ReportFormatsCallback(PSHCLCONTEXT pCtx, SHCLFORMATS fFormats)
    181181{
    182182    RT_NOREF(pCtx);
    183183
    184     LogFlowFunc(("Formats=0x%x\n", Formats));
    185 
    186     SHCLFORMATDATA formatData;
    187     RT_ZERO(formatData);
    188 
    189     formatData.Formats = Formats;
    190 
    191     int rc2 = VbglR3ClipboardFormatsReportEx(&pCtx->CmdCtx, &formatData);
     184    LogFlowFunc(("Formats=0x%x\n", fFormats));
     185
     186    int rc2 = VbglR3ClipboardReportFormats(pCtx->CmdCtx.uClientID, fFormats);
    192187    RT_NOREF(rc2);
    193188    LogFlowFuncLeaveRC(rc2);
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