mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
wayland: remove closed toplevels on event
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644f5e067b3533a7f62c42d4a6d01be00b
This commit is contained in:
parent
acb6657e73
commit
d05ad311a9
1 changed files with 6 additions and 0 deletions
|
|
@ -163,6 +163,12 @@ impl Dispatch<ZwlrForeignToplevelHandleV1, ()> for AppState {
|
|||
}
|
||||
}
|
||||
},
|
||||
zwlr_foreign_toplevel_handle_v1::Event::Closed => {
|
||||
// Clean up when toplevel is closed
|
||||
if let Ok(mut apps) = TOPLEVEL_APPS.lock() {
|
||||
apps.remove(&handle_id);
|
||||
}
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue