- if (!m_hasAtom)
- {
- m_hasAtom = TRUE;
-
- if (m_type == wxDF_TEXT)
- {
- m_atom = g_textAtom;
- }
- else
-/*
- if (m_type == wxDF_BITMAP)
- {
- m_atom = GDK_TARGET_BITMAP;
- }
- else
-*/
- if (m_type == wxDF_PRIVATE)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), wxMBSTRINGCAST m_id.mbc_str(), FALSE );
- }
- else
- if (m_type == wxDF_FILENAME)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), "file:ALL", FALSE );
- }
- else
- {
- m_hasAtom = FALSE;
- m_atom = (Atom) 0;
- }
- }
-
- return m_atom;
+ if (!g_textAtom)
+ g_textAtom = XInternAtom( (Display*) wxGetDisplay(), "STRING", FALSE );
+ if (!g_pngAtom)
+ g_pngAtom = XInternAtom( (Display*) wxGetDisplay(), "image/png", FALSE );
+ if (!g_fileAtom)
+ g_fileAtom = XInternAtom( (Display*) wxGetDisplay(), "file:ALL", FALSE );