text: fix weston key bindings with input methods

Add a struct weston_keyboard, to handle the input method grab.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
diff --git a/src/compositor.h b/src/compositor.h
index 004f931..c0694e8 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -211,11 +211,18 @@
 	xkb_led_index_t scroll_led;
 };
 
+struct weston_keyboard {
+	struct wl_keyboard keyboard;
+
+	struct wl_keyboard_grab input_method_grab;
+	struct wl_resource *input_method_resource;
+};
+
 struct weston_seat {
 	struct wl_seat seat;
 	struct wl_pointer pointer;
 	int has_pointer;
-	struct wl_keyboard keyboard;
+	struct weston_keyboard keyboard;
 	int has_keyboard;
 	struct wl_touch touch;
 	int has_touch;