shell.c: Not all seats have pointers

Don't look up the pointer focus in ping_timeout_handler() if the
seat doesn't have a pointer.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73490
This commit is contained in:
Kristian Høgsberg 2014-01-15 11:46:38 -08:00
parent fa506b6dda
commit 5cbc763404
1 changed files with 1 additions and 1 deletions

View File

@ -1786,7 +1786,7 @@ ping_timeout_handler(void *data)
shsurf->unresponsive = 1;
wl_list_for_each(seat, &shsurf->surface->compositor->seat_list, link)
if (seat->pointer->focus &&
if (seat->pointer && seat->pointer->focus &&
seat->pointer->focus->surface == shsurf->surface)
set_busy_cursor(shsurf, seat->pointer);