[PATCH] dix: send NonlinearVirtual FocusOut events to the immediate parent (#44079)

Peter Hutterer peter.hutterer at who-t.net
Mon Jan 2 22:03:29 PST 2012


nevermind, retracting this patch. the fixed XTS reports a number of issues
with XI focus events, so this may be a larger problem.

Cheers,
  Peter

On Tue, Jan 03, 2012 at 01:05:27PM +1000, Peter Hutterer wrote:
> For a NonlinearVirtual transition from windows A to B, A->parent did not
> receive an event. DeviceFocusOutEvents sends to windows ]from, to[, so start
> with the actual window, not it's parent.
> 
> X.Org Bug  <http://bugs.freedesktop.org/show_bug.cgi?id=44079>
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  dix/enterleave.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/enterleave.c b/dix/enterleave.c
> index a39e640..40d5f5f 100644
> --- a/dix/enterleave.c
> +++ b/dix/enterleave.c
> @@ -1353,7 +1353,7 @@ DeviceFocusEvents(DeviceIntPtr dev,
>                                  NotifyPointer);
>                      DeviceFocusEvent(dev, XI_FocusOut, mode, NotifyNonlinear, from);
>                      if (from->parent != NullWindow)
> -                        DeviceFocusOutEvents(dev, from->parent, common, mode,
> +                        DeviceFocusOutEvents(dev, from, common, mode,
>                                  NotifyNonlinearVirtual);
>                      if (to->parent != NullWindow)
>                          DeviceFocusInEvents(dev, common, to, mode, NotifyNonlinearVirtual);
> -- 
> 1.7.7.4
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list