Skip to content

Drop events often don't trigger on Wayland #77

Description

@s-fleuren

When dropping a file from Nautilus to a tk window that is registered as a drop_target, the drop event often does not trigger when the mouse button is released. I can reproduce this with the following minimal example:

package require tkdnd

tkdnd::drop_target register . *
bind . <<Drop>> [list puts "drop ." ]
bind . <<DropEnter>> [list puts "dropEnter ."]

Then when repeatedly dragging the same file from Nautilus to the tk window, the DropEnter events always trigger but the Drop events only start triggering after a lot of tries:

<redacted>:$ TCLLIBPATH=<redacted>/tkdnd-2.9.5-linux-tcl8.6-i686/tkdnd2.9.5 wish testdnd.tcl 
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
dropEnter .
drop .
dropEnter .
drop .
dropEnter .
drop .

When I use an X11 session instead of Wayland everything works normally.

Tested on Ubuntu 24.04.4 LTS, GNOME 46.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions