[PATCH weston 04/19] input: minor clean up in weston_seat_repick()

Jonas Ådahl jadahl at gmail.com
Wed Jul 1 01:51:44 PDT 2015


On Wed, Jun 03, 2015 at 03:53:23PM -0500, Derek Foreman wrote:
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>

Reviewed-by: Jonas Ådahl <jadahl at gmail.com>

> ---
>  src/input.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/input.c b/src/input.c
> index 6604c5d..c56de70 100644
> --- a/src/input.c
> +++ b/src/input.c
> @@ -51,10 +51,10 @@ weston_seat_repick(struct weston_seat *seat)
>  {
>  	const struct weston_pointer *pointer = seat->pointer;
>  
> -	if (pointer == NULL)
> +	if (!pointer)
>  		return;
>  
> -	pointer->grab->interface->focus(seat->pointer->grab);
> +	pointer->grab->interface->focus(pointer->grab);
>  }
>  
>  static void
> -- 
> 2.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list