Changeset 74411 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Sep 21, 2018 3:36:16 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125245
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp
r74409 r74411 951 951 #endif 952 952 953 uint32_t uAction = DND_IGNORE_ACTION; /* Default is ignoring. */953 uint32_t uAction = VBOX_DND_ACTION_IGNORE; /* Default is ignoring. */ 954 954 /** @todo Compare this with the allowed actions. */ 955 955 if (fAcceptDrop) … … 1111 1111 1112 1112 /** @todo Handle default action! */ 1113 m.data.l[XdndStatusAction] = fAcceptDrop ? toAtomAction( DND_COPY_ACTION) : None;1113 m.data.l[XdndStatusAction] = fAcceptDrop ? toAtomAction(VBOX_DND_ACTION_COPY) : None; 1114 1114 1115 1115 int xRc = XSendEvent(m_pDisplay, e.xclient.data.l[XdndPositionWindow], … … 1139 1139 1140 1140 /* Let the source know. */ 1141 rc = m_wndProxy.sendFinished(m_wndCur, DND_IGNORE_ACTION);1141 rc = m_wndProxy.sendFinished(m_wndCur, VBOX_DND_ACTION_IGNORE); 1142 1142 1143 1143 /* Start over. */ … … 1154 1154 1155 1155 /* Let the source know. */ 1156 rc = m_wndProxy.sendFinished(m_wndCur, DND_IGNORE_ACTION);1156 rc = m_wndProxy.sendFinished(m_wndCur, VBOX_DND_ACTION_IGNORE); 1157 1157 1158 1158 /* Start over. */ … … 1843 1843 { 1844 1844 /* No window to process, so send a ignore ack event to the host. */ 1845 rc = VbglR3DnDHGSendAckOp(&m_dndCtx, DND_IGNORE_ACTION);1845 rc = VbglR3DnDHGSendAckOp(&m_dndCtx, VBOX_DND_ACTION_IGNORE); 1846 1846 } 1847 1847 else … … 1995 1995 1996 1996 RTCString strFormats = "\r\n"; /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */ 1997 uint32_t uDefAction = DND_IGNORE_ACTION;1998 uint32_t uAllActions = DND_IGNORE_ACTION;1997 uint32_t uDefAction = VBOX_DND_ACTION_IGNORE; 1998 uint32_t uAllActions = VBOX_DND_ACTION_IGNORE; 1999 1999 2000 2000 /* Currently in wrong mode? Bail out. */ … … 2097 2097 { 2098 2098 strFormats = strFormatsCur; 2099 uDefAction = DND_COPY_ACTION; /** @todo Handle default action! */2100 uAllActions = DND_COPY_ACTION; /** @todo Ditto. */2099 uDefAction = VBOX_DND_ACTION_COPY; /** @todo Handle default action! */ 2100 uAllActions = VBOX_DND_ACTION_COPY; /** @todo Ditto. */ 2101 2101 uAllActions |= toHGCMActions(m_lstActions); 2102 2102 } … … 2295 2295 /* Cancel the operation -- inform the source window by 2296 2296 * sending a XdndFinished message so that the source can toss the required data. */ 2297 rc = m_wndProxy.sendFinished(wndSource, DND_IGNORE_ACTION);2297 rc = m_wndProxy.sendFinished(wndSource, VBOX_DND_ACTION_IGNORE); 2298 2298 } 2299 2299 … … 2863 2863 uint32_t DragInstance::toHGCMAction(Atom atom) 2864 2864 { 2865 uint32_t uAction = DND_IGNORE_ACTION;2865 uint32_t uAction = VBOX_DND_ACTION_IGNORE; 2866 2866 2867 2867 if (atom == xAtom(XA_XdndActionCopy)) 2868 uAction = DND_COPY_ACTION;2868 uAction = VBOX_DND_ACTION_COPY; 2869 2869 else if (atom == xAtom(XA_XdndActionMove)) 2870 uAction = DND_MOVE_ACTION;2870 uAction = VBOX_DND_ACTION_MOVE; 2871 2871 else if (atom == xAtom(XA_XdndActionLink)) 2872 uAction = DND_LINK_ACTION;2872 uAction = VBOX_DND_ACTION_LINK; 2873 2873 2874 2874 return uAction; … … 2884 2884 uint32_t DragInstance::toHGCMActions(const VBoxDnDAtomList &lstActions) 2885 2885 { 2886 uint32_t uActions = DND_IGNORE_ACTION;2886 uint32_t uActions = VBOX_DND_ACTION_IGNORE; 2887 2887 2888 2888 for (size_t i = 0; i < lstActions.size(); i++) … … 2932 2932 { 2933 2933 /* Was the drop accepted by the host? That is, anything than ignoring. */ 2934 bool fDropAccepted = uAction > DND_IGNORE_ACTION;2934 bool fDropAccepted = uAction > VBOX_DND_ACTION_IGNORE; 2935 2935 2936 2936 LogFlowFunc(("uAction=%RU32\n", uAction));
Note:
See TracChangeset
for help on using the changeset viewer.