- Timestamp:
- May 20, 2008 12:31:51 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xclient/clipboard.cpp
r8155 r8951 93 93 /** X11 atom refering to the clipboard: CLIPBOARD */ 94 94 Atom atomClipboard; 95 /** X11 atom refering to the selection: PRIMARY */ 96 Atom atomPrimary; 95 97 /** X11 atom refering to the clipboard: TARGETS */ 96 98 Atom atomTargets; … … 1127 1129 1128 1130 LogFlowFunc(("\n")); 1129 if (*atomSelection != g_ctx.atomClipboard) 1131 if ( (*atomSelection != g_ctx.atomClipboard) 1132 && (*atomSelection != g_ctx.atomPrimary) 1133 ) 1130 1134 { 1131 1135 LogFlowFunc(("rc = false\n")); … … 1217 1221 g_ctx.eOwner = GUEST; 1218 1222 } 1223 XtOwnSelection(g_ctx.widget, g_ctx.atomPrimary, CurrentTime, vboxClipboardConvertProc, 1224 NULL, 0); 1219 1225 LogFlowFunc(("returning\n")); 1220 1226 } … … 1430 1436 /* Get hold of the atoms which we need */ 1431 1437 g_ctx.atomClipboard = XInternAtom(XtDisplay(g_ctx.widget), "CLIPBOARD", false /* only_if_exists */); 1438 g_ctx.atomPrimary = XInternAtom(XtDisplay(g_ctx.widget), "PRIMARY", false); 1432 1439 g_ctx.atomTargets = XInternAtom(XtDisplay(g_ctx.widget), "TARGETS", false); 1433 1440 g_ctx.atomMultiple = XInternAtom(XtDisplay(g_ctx.widget), "MULTIPLE", false); -
trunk/src/VBox/HostServices/SharedClipboard/x11.cpp
r8155 r8951 97 97 /** X11 atom refering to the clipboard: CLIPBOARD */ 98 98 Atom atomClipboard; 99 /** X11 atom refering to the selection: PRIMARY */ 100 Atom atomPrimary; 99 101 /** X11 atom refering to the clipboard targets: TARGETS */ 100 102 Atom atomTargets; … … 724 726 /* Get hold of the atoms which we need */ 725 727 g_ctx.atomClipboard = XInternAtom(XtDisplay(g_ctx.widget), "CLIPBOARD", false /* only_if_exists */); 728 g_ctx.atomPrimary = XInternAtom(XtDisplay(g_ctx.widget), "PRIMARY", false); 726 729 g_ctx.atomTargets = XInternAtom(XtDisplay(g_ctx.widget), "TARGETS", false); 727 730 g_ctx.atomMultiple = XInternAtom(XtDisplay(g_ctx.widget), "MULTIPLE", false); … … 1230 1233 1231 1234 LogFlowFunc(("\n")); 1232 if (*atomSelection != g_ctx.atomClipboard) 1235 if ( (*atomSelection != g_ctx.atomClipboard) 1236 && (*atomSelection != g_ctx.atomPrimary) 1237 ) 1233 1238 { 1234 1239 LogFlowFunc(("rc = false\n")); … … 1327 1332 g_ctx.eOwner = HOST; 1328 1333 } 1334 XtOwnSelection(g_ctx.widget, g_ctx.atomPrimary, CurrentTime, vboxClipboardConvertProc, 1335 NULL, 0); 1329 1336 LogFlowFunc(("returning\n")); 1330 1337
Note:
See TracChangeset
for help on using the changeset viewer.