Changeset 93314 in vbox
- Timestamp:
- Jan 18, 2022 1:59:14 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149384
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp ¶
r93232 r93314 94 94 class formats; 95 95 SHCL_X11_DECL(Atom) clipGetAtom(PSHCLX11CTX pCtx, const char *pszName); 96 SHCL_X11_DECL(void) clipQueryX11 Formats(PSHCLX11CTX pCtx);96 SHCL_X11_DECL(void) clipQueryX11Targets(PSHCLX11CTX pCtx); 97 97 98 98 static int clipInitInternal(PSHCLX11CTX pCtx); … … 702 702 /* We may already be out of date. */ 703 703 clipSetXtNeedsUpdate(pCtx, false); 704 clipQueryX11 Formats(pCtx);704 clipQueryX11Targets(pCtx); 705 705 return; 706 706 } … … 719 719 720 720 /** 721 * Notifies the VBox clipboard about available data formats , based on the722 * "targets"information obtained from the X11 clipboard.723 * 724 * @note Callback for XtGetSelectionValue().721 * Notifies the VBox clipboard about available data formats ("targets" on X11), 722 * based on the information obtained from the X11 clipboard. 723 * 724 * @note Callback installed by clipQueryX11Targets() for XtGetSelectionValue(). 725 725 * @note This function is treated as API glue, and as such is not part of any 726 726 * unit test. So keep it simple, be paranoid and log everything. 727 727 */ 728 SHCL_X11_DECL(void) clip ConvertX11TargetsCallback(Widget widget, XtPointer pClient,729 730 731 728 SHCL_X11_DECL(void) clipQueryX11TargetsCallback(Widget widget, XtPointer pClient, 729 Atom * /* selection */, Atom *atomType, 730 XtPointer pValue, long unsigned int *pcLen, 731 int *piFormat) 732 732 { 733 733 RT_NOREF(piFormat); … … 797 797 798 798 /** 799 * Callback to notify us when the contents of the X11 clipboard change.799 * Queries the current formats ("targets") of the X11 clipboard ("CLIPBOARD"). 800 800 * 801 801 * @param pCtx The X11 clipboard context to use. 802 802 */ 803 SHCL_X11_DECL(void) clipQueryX11 Formats(PSHCLX11CTX pCtx)803 SHCL_X11_DECL(void) clipQueryX11Targets(PSHCLX11CTX pCtx) 804 804 { 805 805 #ifndef TESTCASE … … 817 817 clipGetAtom(pCtx, "CLIPBOARD"), 818 818 clipGetAtom(pCtx, "TARGETS"), 819 clip ConvertX11TargetsCallback, pCtx,819 clipQueryX11TargetsCallback, pCtx, 820 820 CurrentTime); 821 821 #else … … 860 860 if ( (event.fixes.subtype == 0 /* XFixesSetSelectionOwnerNotify */) 861 861 && (event.fixes.owner != 0)) 862 clipQueryX11 Formats(pCtx);862 clipQueryX11Targets(pCtx); 863 863 else 864 864 clipReportEmpty(pCtx); … … 890 890 { 891 891 if (pCtx->fGrabClipboardOnStart) 892 clipQueryX11 Formats(pCtx);892 clipQueryX11Targets(pCtx); 893 893 894 894 pCtx->fThreadStarted = true; … … 1949 1949 clipSetXtBusy(pCtx, false); 1950 1950 if (clipGetXtNeedsUpdate(pCtx)) 1951 clipQueryX11 Formats(pCtx);1951 clipQueryX11Targets(pCtx); 1952 1952 #endif 1953 1953
Note:
See TracChangeset
for help on using the changeset viewer.