Changeset 22212 in vbox
- Timestamp:
- Aug 12, 2009 4:14:51 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51012
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp
r22191 r22212 526 526 527 527 if (XtAppPeekEvent(pCtx->appContext, &event)) 528 if (event.type == pCtx->fixesEventBase) 528 if ( !pCtx->fOwnsClipboard 529 && (event.type == pCtx->fixesEventBase)) 529 530 clipQueryX11CBFormats(pCtx); 530 531 } … … 1165 1166 rc = clipCreateX11Targets(pCtx, atomTypeReturn, pValReturn, 1166 1167 pcLenReturn, piFormatReturn); 1168 else 1167 1169 rc = clipConvertVBoxCBForX11(pCtx, atomTarget, atomTypeReturn, 1168 1170 pValReturn, pcLenReturn, piFormatReturn); … … 1220 1222 static void clipGrabX11CB(CLIPBACKEND *pCtx, uint32_t u32Formats) 1221 1223 { 1224 /* Make sure we don't try to query ourselves if we get the clipboard */ 1225 pCtx->fOwnsClipboard = true; 1222 1226 if (XtOwnSelection(pCtx->widget, clipGetAtom(pCtx->widget, "CLIPBOARD"), 1223 1227 CurrentTime, clipXtConvertSelectionProc, 1224 1228 clipXtLoseSelectionProc, 0)) 1225 1229 { 1226 pCtx->fOwnsClipboard = true;1227 1230 pCtx->vboxFormats = u32Formats; 1228 1231 /* Grab the middle-button paste selection too. */
Note:
See TracChangeset
for help on using the changeset viewer.