Fix surface_pong when a seat doesn't have a pointer
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.
This commit is contained in:
committed by
Kristian Høgsberg
parent
ff3230952a
commit
eb1e13044f
+3
-1
@@ -1465,8 +1465,10 @@ shell_surface_pong(struct wl_client *client, struct wl_resource *resource,
|
|||||||
|
|
||||||
if (shsurf->ping_timer->serial == serial) {
|
if (shsurf->ping_timer->serial == serial) {
|
||||||
shsurf->unresponsive = 0;
|
shsurf->unresponsive = 0;
|
||||||
wl_list_for_each(seat, &ec->seat_list, link)
|
wl_list_for_each(seat, &ec->seat_list, link) {
|
||||||
|
if(seat->pointer)
|
||||||
end_busy_cursor(shsurf, seat->pointer);
|
end_busy_cursor(shsurf, seat->pointer);
|
||||||
|
}
|
||||||
ping_timer_destroy(shsurf);
|
ping_timer_destroy(shsurf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user