data-device: reset focused surface when destroyed

The surface may be destroyed before the struct wlr_seat_client.

Spotted by Consolatis.
This commit is contained in:
Simon Ser 2024-12-06 16:42:26 +01:00 committed by Alexander Orzechowski
parent a7ebe7c026
commit 71943b3b1e
2 changed files with 18 additions and 1 deletions

View file

@ -135,6 +135,7 @@ struct wlr_drag {
struct {
struct wl_listener source_destroy;
struct wl_listener seat_client_destroy;
struct wl_listener focus_destroy;
struct wl_listener icon_destroy;
} WLR_PRIVATE;
};