diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2015-07-15 13:00:32 -0500 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-07-16 19:03:19 -0700 |
commit | ddc2c97d59110c9982f8b0edf0180784b64b95df (patch) | |
tree | 1365e4d94b0654a90a1f3b8484c71a4bd59abd90 /src | |
parent | d0ead4855f773522288431bf3faaf732a27a123d (diff) |
text-backend: Replace focus_listener_initialized with a bool
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/text-backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text-backend.c b/src/text-backend.c index 9485f7ec..76e4e155 100644 --- a/src/text-backend.c +++ b/src/text-backend.c @@ -79,7 +79,7 @@ struct input_method { struct wl_listener keyboard_focus_listener; - int focus_listener_initialized; + bool focus_listener_initialized; struct input_method_context *context; @@ -919,7 +919,7 @@ input_method_init_seat(struct weston_seat *seat) &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); @@ -990,7 +990,7 @@ text_backend_seat_created(struct text_backend *text_backend, 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; |