If we don't have a background image from the desktop-shell client or the
pointer for some other reason doesn't have a focus we trigger a
segfault as we try to deref the seat->pointer->focus NULL pointer.
https://bugs.freedesktop.org/show_bug.cgi?id=73066
struct background *background =
(struct background *) window_get_user_data(window);
- widget_schedule_resize(background->widget, width, height);
+ widget_schedule_resize(background->widget, width - 256, height);
}
static void
{
if (seat->pointer->grab != &seat->pointer->default_grab)
return;
+ if (seat->pointer->focus == NULL)
+ return;
activate_binding(seat, data, seat->pointer->focus->surface);
}