summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-06-07 15:07:06 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-06-07 16:43:56 -0400
commit43e1ba8073c32e0b5017c8059f0d0e0d9df887c8 (patch)
treea5075aef4a1dba160f5f30a2f4c5512075c6e0f8
parent36f155f80f85f0f1cfcb7b9d62aaa4ac8ea410ad (diff)
shell: fix crash when no pointer device
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
-rw-r--r--src/shell.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c
index e25bf71..85395c4 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);