fixed type of TARGETS target.

This commit is contained in:
crs 2002-07-24 17:30:32 +00:00
parent 5fe7763d37
commit 67051556bb
2 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,7 @@ CXWindowsClipboard::CXWindowsClipboard(Display* display,
m_atomMultiple = XInternAtom(m_display, "MULTIPLE", False);
m_atomTimestamp = XInternAtom(m_display, "TIMESTAMP", False);
m_atomInteger = XInternAtom(m_display, "INTEGER", False);
m_atomAtom = XInternAtom(m_display, "ATOM", False);
m_atomAtomPair = XInternAtom(m_display, "ATOM_PAIR", False);
m_atomData = XInternAtom(m_display, "CLIP_TEMPORARY", False);
m_atomINCR = XInternAtom(m_display, "INCR", False);
@ -476,7 +477,8 @@ CXWindowsClipboard::icccmFillCache()
const Atom atomTargets = m_atomTargets;
Atom target;
CString data;
if (!icccmGetSelection(atomTargets, &target, &data)) {
if (!icccmGetSelection(atomTargets, &target, &data) ||
target != m_atomAtom) {
log((CLOG_DEBUG1 "selection doesn't support TARGETS"));
data = "";
@ -1156,7 +1158,7 @@ CXWindowsClipboard::getTargetsData(CString& data, int* format) const
}
*format = 32;
return m_atomTargets;
return m_atomAtom;
}
Atom

View File

@ -271,6 +271,7 @@ private:
Atom m_atomMultiple;
Atom m_atomTimestamp;
Atom m_atomInteger;
Atom m_atomAtom;
Atom m_atomAtomPair;
Atom m_atomData;
Atom m_atomINCR;