fix: clean up dnd rectangles reference to window on close

This commit is contained in:
Ashley Wulber 2026-02-25 17:47:30 -05:00
parent 73369a18eb
commit 59fbf68c54
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -2057,6 +2057,10 @@ where
platform_specific
.send_wayland(platform_specific::Action::RemoveWindow(id));
if let Some(window) = window_manager.remove(id) {
clipboard.register_dnd_destination(
DndSurface(Arc::new(Box::new(window.raw.clone()))),
Vec::new(),
);
if clipboard.window_id() == Some(window.raw.id()) {
*clipboard = window_manager
.first()