From 5cbc7634043707c3a0e442014910fc7f6db317e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 15 Jan 2014 11:46:38 -0800 Subject: [PATCH] shell.c: Not all seats have pointers Don't look up the pointer focus in ping_timeout_handler() if the seat doesn't have a pointer. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73490 --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index ad0a055e4..b5d5e2900 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1786,7 +1786,7 @@ ping_timeout_handler(void *data) shsurf->unresponsive = 1; wl_list_for_each(seat, &shsurf->surface->compositor->seat_list, link) - if (seat->pointer->focus && + if (seat->pointer && seat->pointer->focus && seat->pointer->focus->surface == shsurf->surface) set_busy_cursor(shsurf, seat->pointer);