From 43e1ba8073c32e0b5017c8059f0d0e0d9df887c8 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 7 Jun 2012 15:07:06 +0300 Subject: [PATCH] shell: fix crash when no pointer device Signed-off-by: Pekka Paalanen --- src/shell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shell.c b/src/shell.c index e25bf715..85395c47 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2781,8 +2781,9 @@ shell_init(struct weston_compositor *ec) return -1; shell->pointer_focus_listener.notify = handle_pointer_focus; - wl_signal_add(&ec->seat->seat.pointer->focus_signal, - &shell->pointer_focus_listener); + if (ec->seat->seat.pointer) + wl_signal_add(&ec->seat->seat.pointer->focus_signal, + &shell->pointer_focus_listener); shell_add_bindings(ec, shell);