Bug 96437

Summary: LeaveNotify event not delivered when crossing to a native Wayland window
Product: Wayland Reporter: Olivier Fourdan <fourdan>
Component: XWaylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: daniel
Version: unspecified   
Hardware: Other   
OS: All   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=766377
Whiteboard:
i915 platform: i915 features:

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

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.