CLUTTER_LEAVE Event for Actor under Cursor unnecessary
Affected version
- Ubuntu 20.04
- Mutter 3.36.1
- XOrg only
Bug summary
Issue occurs with extension "desktop-icons". When the cursor is moved from a dash icon to a desktop icon, the desktop icon is highlighted (or hovered). After a few milliseconds the icon is unhovered again. This is due to an unexpected leave event from XOrg. The leave event is handled through clutter. The original event's actor is the stage. However, clutter creates a separate leave event for the actor under the pointer. Not sure whether this is desired. Why do you want to leave an actor which the user currently highlights through the pointer?
The behavior does not occur when moving the pointer from a plain part of the dash to a desktop icon. Maybe the dash starters are triggering the extra leave event?
This commit fixes the behavior: marsch84/mutter@647d017d
Extension desktop-icons: https://gitlab.gnome.org/World/ShellExtensions/desktop-icons
Steps to reproduce
- Install extension "desktop-icons".
- Place cursor on starter of dash.
- Move the cursor from the starter on the neighboring desktop icon.
- Icon is highlighted as expected.
- Hover effect is removed from the again after a few milliseconds.
What happened
Clutter triggers an extra leave event for the actor under the cursor.
What did you expect to happen
I assume it is not necessary to leave the actor currently highlighted by the pointer.