shell: fix crash when no pointer device

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen
2012-06-07 15:07:06 +03:00
committed by Kristian Høgsberg
parent 36f155f80f
commit 43e1ba8073
+3 -2
View File
@@ -2781,8 +2781,9 @@ shell_init(struct weston_compositor *ec)
return -1; return -1;
shell->pointer_focus_listener.notify = handle_pointer_focus; shell->pointer_focus_listener.notify = handle_pointer_focus;
wl_signal_add(&ec->seat->seat.pointer->focus_signal, if (ec->seat->seat.pointer)
&shell->pointer_focus_listener); wl_signal_add(&ec->seat->seat.pointer->focus_signal,
&shell->pointer_focus_listener);
shell_add_bindings(ec, shell); shell_add_bindings(ec, shell);