XI_Enter and XI_Leave generated when not selected
For some reason the X server sends us XI_Enter and XI_Leave events in some cases even though we haven't selected these events.
The scenario is when an implicit grab is active and the cursor enters or leaves the window. So double wrong I guess since it should not generate these events at all when grabbed?
If we have an explicit grab then the issue disappears and we no longer get the events.
We've seen this both on Xorg and XWayland.
$ rpm -q xorg-x11-server-Xorg xorg-x11-server-Xwayland xorg-x11-server-Xorg-1.20.6-1.fc31.x86_64 xorg-x11-server-Xwayland-1.20.6-1.fc31.x86_64