[PATCH weston 01/19] text-backend: Replace focus_listener_initialized with a bool

Jonas Ådahl jadahl at gmail.com
Wed Jul 1 01:50:39 PDT 2015


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

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

> ---
>  src/text-backend.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/text-backend.c b/src/text-backend.c
> index daae03c..de170e8 100644
> --- a/src/text-backend.c
> +++ b/src/text-backend.c
> @@ -75,7 +75,7 @@ struct input_method {
>  
>  	struct wl_listener keyboard_focus_listener;
>  
> -	int focus_listener_initialized;
> +	bool focus_listener_initialized;
>  
>  	struct input_method_context *context;
>  
> @@ -879,7 +879,7 @@ input_method_init_seat(struct weston_seat *seat)
>  		seat->keyboard->input_method_grab.interface = &input_method_context_grab;
>  	}
>  
> -	seat->input_method->focus_listener_initialized = 1;
> +	seat->input_method->focus_listener_initialized = true;
>  }
>  
>  static void launch_input_method(struct text_backend *text_backend);
> @@ -949,7 +949,7 @@ handle_seat_created(struct wl_listener *listener,
>  
>  	input_method->seat = seat;
>  	input_method->input = NULL;
> -	input_method->focus_listener_initialized = 0;
> +	input_method->focus_listener_initialized = false;
>  	input_method->context = NULL;
>  	input_method->text_backend = text_backend;
>  
> -- 
> 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