[PATCH v3 xserver] xwayland-input: Fake crossing to rootwin
Olivier Fourdan
ofourdan at redhat.com
Thu Jun 23 13:29:21 UTC 2016
----- Original Message -----
> On Tue, Jun 21, 2016 at 01:54:35PM +0200, Olivier Fourdan wrote:
> > This partially reverts commit c1565f3.
> >
> > When the pointer moves from an X11 window to a Wayland native window,
> > no LeaveNotify event is emitted which can lead to various unexpected
> > behaviors like tooltips remaining visible after the pointer has left the
> > window.
> >
> > Yet the pointer_handle_leave() is called and so is the DIX CheckMotion()
> > but since the pointer enters a Wayland native window with no other
> > Xwayland window matching, DoEnterLeaveEvents() does not get invoked and
> > therefore no LeaveNotify event is sent to the X11 client at the time the
> > pointer leaves the window for a Wayland native surface.
> >
> > Restore the XYToWindow() handler in xwayland-input that was previously
> > removed with commit c1565f3 and use that handler to pretend that the
> > pointer entered the root window in this case so that the LeaveNotify
> > event is emitted.
> >
> > Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
> > Acked-by: Daniel Stone <daniels at collabora.com>
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96437
> > ---
>
> 111a045..7397a21 master -> master
>
> thanks.
Blimey! just when this gets merged I realize this can confuse focus follow mouse in mutter/gnome-shell...
Sorry about that, I'll post a possible fix shortly, I thionk it's pretty simple to address.
Cheers,
Olivier
More information about the xorg-devel
mailing list