Second Drag-and-Drop operation causes Gtk-CRITICAL messages at every event
Steps to reproduce
- Run from a terminal:
gtk4-demo --run=clipboard
(for instance...) - Select the "Copy this!" text in the text entry.
- Drag your selected text to the paste area below
- Drop your text. All is well for now.
- Repeat step 3: your terminal gets flowded with messages. Dropping still works though.
Same happens if you drag text from another window and drop it to the text entry. It's a Drag and drop issue, not a gtk4-demo issue.
Current behavior
On the second drag operation (and any other after) landing in the gtk4 app window, the terminal gets flowded by Gtk-CRITICAL messages
This appears in my app, but also in gtk4-demo. The terminal gets flowded by messages:
(gtk4-demo:6611): Gtk-WARNING **: 07:45:05.175: (../gtk/gtk/gtkdroptargetasync.c:272):gtk_drop_target_async_handle_crossing: runtime check failed: (self->drop == NULL || self->drop == crossing->drop)
(gtk4-demo:6611): Gtk-CRITICAL **: 07:45:05.176: gtk_drop_target_async_handle_event: assertion 'self->drop == drop' failed
Expected outcome
Well, no messages.
Version information
GTK version: 4.14.3 OS: Linux (Archlinux) DE: KDE Plasma 6.1.0 Wayland
Note
#4498 (closed) had the same symptoms
Edited by Benjamin Hennion