data-device: reset focused surface when destroyed

The surface may be destroyed before the struct wlr_seat_client.

Spotted by Consolatis.

(cherry picked from commit 71943b3b1e)
This commit is contained in:
Simon Ser 2024-12-06 16:42:26 +01:00 committed by Simon Zeni
parent 1fc9409df2
commit 35ab453360
2 changed files with 18 additions and 1 deletions

View file

@ -126,6 +126,7 @@ struct wlr_drag {
struct wl_listener source_destroy;
struct wl_listener seat_client_destroy;
struct wl_listener focus_destroy;
struct wl_listener icon_destroy;
void *data;