Revert "pointer: Repick after the focused surface is destroyed"

This reverts commit e496ed50d6.

This was incorrect. wl_surface_destructor actually does the full repick
-- doing it here is dangerous, because the destroy listeners actually
run *before* the destructor, not after, so the surface is still alive.
This commit is contained in:
Jasper St. Pierre 2014-10-08 12:36:13 -07:00
parent 272e1fb296
commit 7e431bd6bc

View File

@ -96,7 +96,7 @@ pointer_handle_focus_surface_destroy (struct wl_listener *listener, void *data)
{
MetaWaylandPointer *pointer = wl_container_of (listener, pointer, focus_surface_listener);
meta_wayland_pointer_repick (pointer);
meta_wayland_pointer_set_focus (pointer, NULL);
}
static void