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:
parent
c7814d2e98
commit
eac9a46012
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user