unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
82 stars 12 forks source link

drag-and-drop only works once #33

Closed dpeterc closed 3 years ago

dpeterc commented 3 years ago

Drag-and-drop works correctly the first time; the selected file gets opened, or if we already have an open file, it opens new window with that file. But if you then select a different file and drop it again on the first xnedit window, nothing happens. This is because drag-and-drop is getting again the first file. But if we drop it to another xnedit, it opens the correct newly selected file. It looks as if xnedit drag-and-drop would be locked by the first file dropped. In my opinion, this is probably due to lack of calling XdndFinished, so drag and drop operation is not really complete, and the new one can not start.

unixwork commented 3 years ago

Indeed, the missing XdndFinished was the problem. It worked with some gtk file managers, but not with KDE.

Can you confirm, that the latest commit fixes the problem?

dpeterc commented 3 years ago

I confirm that it is working correctly now. Thank you very much for the quick fix!