mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Fix rare, intermittent dnd crash
Set source to NULL to avoid passing null to wl_signal_emit_mutable() in wlr_data_source_destroy() Ref: - https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/types/data_device/wlr_data_source.c#L38 - https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/types/data_device/wlr_data_device.c?ref_type=heads#L194 Fixes #2287 #2371
This commit is contained in:
parent
c2928027be
commit
185061a126
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ handle_drag_request(struct wl_listener *listener, void *data)
|
||||||
event->serial);
|
event->serial);
|
||||||
} else {
|
} else {
|
||||||
wlr_data_source_destroy(event->drag->source);
|
wlr_data_source_destroy(event->drag->source);
|
||||||
|
event->drag->source = NULL;
|
||||||
wlr_log(WLR_ERROR, "wrong source for drag request");
|
wlr_log(WLR_ERROR, "wrong source for drag request");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue