[PATCH xserver v2] input: Track wayland protocol changes.

darxus at chaosreigns.com darxus at chaosreigns.com
Sun May 13 06:45:59 PDT 2012


I verified this works.

12:14AM < min2> 103db7fb56c4befa3c61c619d41ef0733d8d066a is the first bad
commit

That weston commit broke xwayland mouse input, this patch fixes it.

On 05/13, Scott Moreau wrote:
> Use wl_fixed_t types in the input handler. Thanks to
> Martin Minarik for bisecting to track down the problem.
> ---
> 
> Separated additional comments into two lines since
> they were over the limit.
> 
>  hw/xfree86/xwayland/xwayland-input.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/xfree86/xwayland/xwayland-input.c b/hw/xfree86/xwayland/xwayland-input.c
> index 7cc7a1f..82c53c4 100644
> --- a/hw/xfree86/xwayland/xwayland-input.c
> +++ b/hw/xfree86/xwayland/xwayland-input.c
> @@ -268,11 +268,13 @@ device_added(struct xwl_input_device *xwl_input_device, const char *driver)
>  
>  static void
>  input_device_handle_motion(void *data, struct wl_input_device *input_device,
> -			   uint32_t time, int32_t sx, int32_t sy)
> +			   uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w)
>  {
>      struct xwl_input_device *xwl_input_device = data;
>      struct xwl_screen *xwl_screen = xwl_input_device->xwl_screen;
>      int32_t dx, dy, lx, ly;
> +    float sx = wl_fixed_to_double(sx_w);
> +    float sy = wl_fixed_to_double(sy_w);
>  
>      if (!xwl_input_device->focus_window)
>  	return ;
> -- 
> 1.7.7.6
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> 

-- 
"If you would be a real seeker after truth, it is necessary that at
least once in your life you doubt, as far as possible, all things."
- Rene Descartes
http://www.ChaosReigns.com


More information about the wayland-devel mailing list