VirtualBox

Changeset 22212 in vbox


Ignore:
Timestamp:
Aug 12, 2009 4:14:51 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51012
Message:

GuestHost/SharedClipboard/x11: fixed an accidental deletion and make sure we don't ask ourselves for supported clipboard data formats

File:
1 edited

Legend:

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

    r22191 r22212  
    526526
    527527    if (XtAppPeekEvent(pCtx->appContext, &event))
    528         if (event.type == pCtx->fixesEventBase)
     528        if (   !pCtx->fOwnsClipboard
     529            && (event.type == pCtx->fixesEventBase))
    529530            clipQueryX11CBFormats(pCtx);
    530531}
     
    11651166        rc = clipCreateX11Targets(pCtx, atomTypeReturn, pValReturn,
    11661167                                  pcLenReturn, piFormatReturn);
     1168    else
    11671169        rc = clipConvertVBoxCBForX11(pCtx, atomTarget, atomTypeReturn,
    11681170                                     pValReturn, pcLenReturn, piFormatReturn);
     
    12201222static void clipGrabX11CB(CLIPBACKEND *pCtx, uint32_t u32Formats)
    12211223{
     1224    /* Make sure we don't try to query ourselves if we get the clipboard */
     1225    pCtx->fOwnsClipboard = true;
    12221226    if (XtOwnSelection(pCtx->widget, clipGetAtom(pCtx->widget, "CLIPBOARD"),
    12231227                       CurrentTime, clipXtConvertSelectionProc,
    12241228                       clipXtLoseSelectionProc, 0))
    12251229    {
    1226         pCtx->fOwnsClipboard = true;
    12271230        pCtx->vboxFormats = u32Formats;
    12281231        /* Grab the middle-button paste selection too. */
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