shell: Don't ping internal shell surfaces
authorKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Apr 2012 03:20:07 +0000 (23:20 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Apr 2012 03:21:33 +0000 (23:21 -0400)
This is a hack for now to get xserver surfaces working again.

src/shell.c

index ed5ca80..fd66462 100644 (file)
@@ -418,6 +418,8 @@ ping_handler(struct weston_surface *surface, uint32_t serial)
 
        if (!shsurf)
                return;
+       if (!shsurf->resource.client)
+               return;
 
        if (!shsurf->ping_timer) {
                shsurf->ping_timer = malloc(sizeof shsurf->ping_timer);