Revert "pointer: Repick after the focused surface is destroyed"
This reverts commit e496ed50d6b127a57cfc189bad19a32564fde46b. 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:
parent
272e1fb296
commit
7e431bd6bc
@ -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);
|
MetaWaylandPointer *pointer = wl_container_of (listener, pointer, focus_surface_listener);
|
||||||
|
|
||||||
meta_wayland_pointer_repick (pointer);
|
meta_wayland_pointer_set_focus (pointer, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user