This patch fixes a crash with the surface_pong when one of the
seats doesn't have a pointer. This was the case with the RDP compositor
that use a fake seat with no mouse or keyboard.
if (shsurf->ping_timer->serial == serial) {
shsurf->unresponsive = 0;
- wl_list_for_each(seat, &ec->seat_list, link)
- end_busy_cursor(shsurf, seat->pointer);
+ wl_list_for_each(seat, &ec->seat_list, link) {
+ if(seat->pointer)
+ end_busy_cursor(shsurf, seat->pointer);
+ }
ping_timer_destroy(shsurf);
}
}