From eac9a4601229c09d996c707926b11777eb13bccf Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Mon, 16 Jul 2012 14:15:48 +0300 Subject: [PATCH] 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. --- src/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.c b/src/shell.c index 5932020d..40cef14f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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)