Changeset 8951 in vbox for trunk/src/VBox/Additions
- Timestamp:
- May 20, 2008 12:31:51 PM (17 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.