Commit 12d6985f authored by Erwan Tulou's avatar Erwan Tulou

skins2(Linux): fix a drag&drop issue with some sources (konqueror, dolphin)

This fixes #7165 and can be backported.
parent bf5cbbd0
......@@ -104,9 +104,9 @@ void X11DragDrop::dndEnter( ldata_t data )
void X11DragDrop::dndPosition( ldata_t data )
{
Window src = data[0];
//Time time = data[3];
m_xPos = data[2] >> 16;
m_yPos = data[2] & 0xffff;
Time time = data[3];
Atom selectionAtom = XInternAtom( XDISPLAY, "XdndSelection", 0 );
//Atom targetAtom = XInternAtom( XDISPLAY, "text/plain", 0 );
......@@ -119,7 +119,7 @@ void X11DragDrop::dndPosition( ldata_t data )
// Convert the selection into the given target
// NEEDED or it doesn't work!
XConvertSelection( XDISPLAY, selectionAtom, targetAtom, propAtom, src,
CurrentTime );
time );
actionAtom = XInternAtom( XDISPLAY, "XdndActionCopy", 0 );
typeAtom = XInternAtom( XDISPLAY, "XdndStatus", 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment