mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
data-device: fix crash when a client dies during a drag with an icon
The commit that split wl_input_device into wl_seat and friends changed erroneously the drag icon destroy listener, causing it to operate into an invalid pointer to a wl_seat.
This commit is contained in:
parent
c66f26024b
commit
d422a733b4
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ static void
|
|||
destroy_data_device_icon(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct wl_seat *seat = container_of(listener, struct wl_seat,
|
||||
drag_data_source_listener);
|
||||
drag_icon_listener);
|
||||
|
||||
seat->drag_surface = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue