mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
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:
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…
Reference in New Issue
Block a user