Bug 96437 - LeaveNotify event not delivered when crossing to a native Wayland window
Summary: LeaveNotify event not delivered when crossing to a native Wayland window
Alias: None
Product: Wayland
Classification: Unclassified
Component: XWayland (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact: Xorg Project Team
Depends on:
Reported: 2016-06-08 07:33 UTC by Olivier Fourdan
Modified: 2016-06-23 06:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Olivier Fourdan 2016-06-08 07:33:38 UTC

While investigating issues with tooltips not disappearing in X11 apps running under Xwayland, I noticed that in some cases, the LeaveNotify event is not delivered to the X11 window when the pointer crosses from an X11 window to a Wayland native window.

Steps to reproduce:

1. Run xev and weston-terminal and place them so that the xev window is beneath the weston-terminal (Wayland native window) as follow :

              |                                  |
              | > weston-terminal                |
              |                                  |
              |                                  |
  +-----------|                                  |
  |           |                                  |
  |     xev   |                                  |
  |           |                                  |
  |           +----------------------------------+

2. Move the mouse pointer from the xev to the weston-window and observe the events reported

Actual results:

MotionNotify events are reported until the pointer enters the native Wayland window but no LeaveNotify event is reported, even though the pointer has left the xev window to enter the Wayland native window.

Expected results:

As soon as the pointer actually leaves the X11 window, we should receive a LeaveNotify event.

Additional data:

If we move the pointer back to the xev window, we get a LeaveNotify followed immediately by an EnterNotify, as if the LeaveNotify was pending.
Comment 1 Olivier Fourdan 2016-06-08 12:07:58 UTC
RFC patch https://patchwork.freedesktop.org/series/8446/
Comment 2 Olivier Fourdan 2016-06-23 06:51:57 UTC
Patch has landed in git master as commit 7397a21, closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.