Hide toplevel from toplevel list when it is being dragged

Uses a custom wrapper widget, that makes `draw` do nothing when visible
is set to false.

This works well sometimes, but can cause weird bugs...
This commit is contained in:
Ian Douglas Scott 2024-04-19 12:05:35 -07:00
parent b011ecd615
commit 09e03cd096
4 changed files with 127 additions and 5 deletions

View file

@ -19,8 +19,8 @@ mod mouse_interaction_wrapper;
pub use mouse_interaction_wrapper::mouse_interaction_wrapper;
mod toplevels;
pub use toplevels::toplevels;
trait Foo {}
mod visibility_wrapper;
pub use visibility_wrapper::visibility_wrapper;
pub fn layout_wrapper<'a, Msg, T: Into<cosmic::Element<'a, Msg>>>(
inner: T,