- Timestamp:
- May 21, 2015 9:52:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp
r55918 r55997 899 899 if (e.xselectionrequest.target == xAtom(XA_TARGETS)) 900 900 { 901 LogFlowThisFunc(("wnd=%#x '%s'asking for target list\n",902 e.xselectionrequest.requestor, propName.value ));901 LogFlowThisFunc(("wnd=%#x ('%s') asking for target list\n", 902 e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>")); 903 903 904 904 /* If so, set the window property with the formats on the requestor … … 916 916 else if (m_lstFormats.contains(e.xselectionrequest.target)) 917 917 { 918 LogFlowThisFunc(("wnd=%#x '%s'asking for data, format=%s\n",919 e.xselectionrequest.requestor, propName.value ,918 LogFlowThisFunc(("wnd=%#x ('%s') asking for data, format=%s\n", 919 e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>", 920 920 xAtomToString(e.xselectionrequest.target).c_str())); 921 921 … … 933 933 else 934 934 { 935 LogFlowThisFunc(("Saving selection notify message of wnd=%#x '%s'\n",936 e.xselectionrequest.requestor, propName.value ));935 LogFlowThisFunc(("Saving selection notify message of wnd=%#x ('%s')\n", 936 e.xselectionrequest.requestor, propName.value ? (const char *)propName.value : "<No name>")); 937 937 938 938 memcpy(&m_eventHgSelection, &e, sizeof(XEvent)); … … 948 948 else 949 949 { 950 LogFlowThisFunc(("Refusing unknown command of wnd=%#x '%s'\n", e.xselectionrequest.requestor, propName.value)); 950 LogFlowThisFunc(("Refusing unknown command of wnd=%#x ('%s')\n", e.xselectionrequest.requestor, 951 propName.value ? (const char *)propName.value : "<No name>")); 951 952 952 953 /* We don't understand this request message and therefore answer with an … … 1422 1423 int DragInstance::hgDrop(void) 1423 1424 { 1424 LogFlowThisFunc(("wndCur=%#x, wndProxy=%#x, mode=%RU32, state=%RU32\n", m_wnd Proxy, m_wndCur, m_enmMode, m_enmState));1425 LogFlowThisFunc(("wndCur=%#x, wndProxy=%#x, mode=%RU32, state=%RU32\n", m_wndCur, m_wndProxy, m_enmMode, m_enmState)); 1425 1426 1426 1427 if ( m_enmMode != HG … … 1447 1448 int xRc = XSendEvent(m_pDisplay, m_wndCur, False, NoEventMask, reinterpret_cast<XEvent*>(&m)); 1448 1449 if (RT_UNLIKELY(xRc == 0)) 1449 logError("Error sending XA_XdndDrop event to current window=%#x: %s\n", m_wndCur, gX11->xErrorToString(xRc).c_str());1450 logError("Error sending XA_XdndDrop event to wndCur=%#x: %s\n", m_wndCur, gX11->xErrorToString(xRc).c_str()); 1450 1451 1451 1452 m_wndCur = None;
Note:
See TracChangeset
for help on using the changeset viewer.