Hovering over an item in thunars main panel highlights it. If one moves the cursor away from a thunar window and the cursors trajectory passes a partially displayed item (e.g. by the lower window border), the item gets highlighted but never de-highlighted, when cursor leaves the window. This may lead to serious misbehavior when using thunar in single click activation mode, because the non de-highlighted item gets selected. This way one can loose a selection of files and in the worst case accidentally delete the wrong file.
This happens in xfce4-settings-manager too, so maybe a bug in exo-icon-view.
Created attachment 9159 0001-Fix-for-the-bug-11806.patch Fix for the bug. Please test.
Created attachment 9162 0001-Fix-for-the-bug-11806.patch Updated patch (minor change).
Thanks for the patch. I tested it and it does fix the bug.
Created attachment 9166 0001-Fix-for-the-bug-11806.patch Still a minor refinement of the patch (moving the GDK_LEAVE_NOTIFY_MASK from the clipping window to the icons window (feels better to have it near the POINTER_MOTION_MASK) and moving the comment before the block).
Adam Purkrt referenced this bugreport in commit 37e00da8247a6b60cad1cc91e734805000cba926 Fix prelight deactivation (bug #11806) https://git.xfce.org/xfce/exo/commit?id=37e00da8247a6b60cad1cc91e734805000cba926
Thanks for the patches! Applied the final version above.