pointer: Repick after the focused surface is destroyed

Having a null focus is incorrect -- we want to pick the surface that's
under the new pointer position.
This commit is contained in:
Jasper St. Pierre 2014-10-06 16:29:44 -07:00
parent a127d05790
commit e496ed50d6

View File

@ -95,7 +95,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_set_focus (pointer, NULL);
meta_wayland_pointer_repick (pointer);
}
static void