VirtualBox

Changeset 46288 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
May 27, 2013 1:56:38 PM (12 years ago)
Author:
vboxsync
Message:

GuestHost/SharedClipboard/X11: attempt to fix public bug #11792 (copy and paste between virtual machines).

File:
1 edited

Legend:

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

    r44528 r46288  
    12771277        XtOwnSelection(pCtx->widget, clipGetAtom(pCtx->widget, "PRIMARY"),
    12781278                       CurrentTime, clipXtConvertSelectionProc, NULL, 0);
     1279#ifndef TESTCASE
     1280        /* Xt suppresses these if we already own the clipboard, so send them
     1281         * ourselves. */
     1282        XSetSelectionOwner(XtDisplay(pCtx->widget),
     1283                           clipGetAtom(pCtx->widget, "CLIPBOARD"),
     1284                           XtWindow(pCtx->widget), CurrentTime);
     1285        XSetSelectionOwner(XtDisplay(pCtx->widget),
     1286                           clipGetAtom(pCtx->widget, "PRIMARY"),
     1287                           XtWindow(pCtx->widget), CurrentTime);
     1288#endif
    12791289    }
    12801290}
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