[PATCH weston] compositor-wayland: Code cleanup

Pekka Paalanen ppaalanen at gmail.com
Wed May 20 01:27:20 PDT 2015


On Wed, 20 May 2015 01:03:53 -0700
Dima Ryazanov <dima at gmail.com> wrote:

> Don't do multi-assignments.
> 
> Signed-off-by: Dima Ryazanov <dima at gmail.com>
> ---
>  src/compositor-wayland.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
> index aaf205b..935701a 100644
> --- a/src/compositor-wayland.c
> +++ b/src/compositor-wayland.c
> @@ -1395,7 +1395,8 @@ input_handle_button(void *data, struct wl_pointer *pointer,
>  
>  		if (frame_status(input->output->frame) & FRAME_STATUS_CLOSE) {
>  			wayland_output_destroy(&input->output->base);
> -			input->output = input->keyboard_focus = NULL;
> +			input->output = NULL;
> +			input->keyboard_focus = NULL;
>  
>  			if (wl_list_empty(&input->compositor->base.output_list))
>  				wl_display_terminate(input->compositor->base.wl_display);

Pushed.
   01d5c02..b7e70af  master -> master


Thanks,
pq


More information about the wayland-devel mailing list