shell: fix crash when no pointer device

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Pekka Paalanen 13 years ago committed by Kristian Høgsberg
parent 36f155f80f
commit 43e1ba8073
  1. 1
      src/shell.c

@ -2781,6 +2781,7 @@ 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;
if (ec->seat->seat.pointer)
wl_signal_add(&ec->seat->seat.pointer->focus_signal, wl_signal_add(&ec->seat->seat.pointer->focus_signal,
&shell->pointer_focus_listener); &shell->pointer_focus_listener);

Loading…
Cancel
Save