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:
parent
fa506b6dda
commit
5cbc763404
|
@ -1786,7 +1786,7 @@ ping_timeout_handler(void *data)
|
||||||
shsurf->unresponsive = 1;
|
shsurf->unresponsive = 1;
|
||||||
|
|
||||||
wl_list_for_each(seat, &shsurf->surface->compositor->seat_list, link)
|
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)
|
seat->pointer->focus->surface == shsurf->surface)
|
||||||
set_busy_cursor(shsurf, seat->pointer);
|
set_busy_cursor(shsurf, seat->pointer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue