[PATCH weston 09/10] keyboard: do not crash if no input panel is available

rawoul at gmail.com rawoul at gmail.com
Mon Aug 25 11:56:51 PDT 2014


From: Arnaud Vrac <avrac at freebox.fr>

---
 clients/keyboard.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/keyboard.c b/clients/keyboard.c
index 7c11cec..750f58e 100644
--- a/clients/keyboard.c
+++ b/clients/keyboard.c
@@ -969,6 +969,8 @@ keyboard_create(struct output *output, struct virtual_keyboard *virtual_keyboard
 			       layout->columns * key_width,
 			       layout->rows * key_height);
 
+	if (!virtual_keyboard->input_panel)
+		return;
 
 	ips = wl_input_panel_get_input_panel_surface(virtual_keyboard->input_panel,
 						     window_get_wl_surface(keyboard->window));
-- 
1.9.1



More information about the wayland-devel mailing list