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

Derek Foreman derekf at osg.samsung.com
Wed Jun 3 13:53:20 PDT 2015


Signed-off-by: Derek Foreman <derekf at osg.samsung.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



More information about the wayland-devel mailing list