fix: clean up dnd rectangles reference to window on close
This commit is contained in:
parent
73369a18eb
commit
59fbf68c54
1 changed files with 4 additions and 0 deletions
|
|
@ -2057,6 +2057,10 @@ where
|
||||||
platform_specific
|
platform_specific
|
||||||
.send_wayland(platform_specific::Action::RemoveWindow(id));
|
.send_wayland(platform_specific::Action::RemoveWindow(id));
|
||||||
if let Some(window) = window_manager.remove(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()) {
|
if clipboard.window_id() == Some(window.raw.id()) {
|
||||||
*clipboard = window_manager
|
*clipboard = window_manager
|
||||||
.first()
|
.first()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue