shell: Don't ping the grab surface

If the grab surface happens to be unresponsive, the busy cursor grab
will be started and that will cause the grab surface to receive focus,
which in turn leads to it being pingged again. Break the cycle by not
sending pings to it. If the shell is unresponsive it won't be able to
set the busy cursor anyway.
This commit is contained in:
Ander Conselvan de Oliveira 2012-07-16 14:15:48 +03:00 committed by Kristian Høgsberg
parent c7814d2e98
commit eac9a46012

View File

@ -918,6 +918,9 @@ ping_handler(struct weston_surface *surface, uint32_t serial)
if (!shsurf->resource.client)
return;
if (shsurf->surface == shsurf->shell->grab_surface)
return;
if (!shsurf->ping_timer) {
shsurf->ping_timer = malloc(sizeof *shsurf->ping_timer);
if (!shsurf->ping_timer)