projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f155f
)
shell: fix crash when no pointer device
author
Pekka Paalanen
<ppaalanen@gmail.com>
Thu, 7 Jun 2012 12:07:06 +0000
(15:07 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 7 Jun 2012 20:43:56 +0000
(16:43 -0400)
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/shell.c
patch
|
blob
|
history
diff --git
a/src/shell.c
b/src/shell.c
index
e25bf71
..
85395c4
100644
(file)
--- 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);