1
0
Fork 0
forked from wry/wry

tree: restack containing float when node is activated

This commit is contained in:
Julian Orth 2025-07-16 21:36:45 +02:00
parent d038df28f7
commit afe2022953
4 changed files with 15 additions and 1 deletions

View file

@ -988,3 +988,13 @@ impl PinnedNode for FloatNode {
self.set_workspace_(workspace, false, update_visible);
}
}
impl dyn Node {
pub fn node_restack(self: &Rc<Self>) {
if let Some(tl) = self.clone().node_toplevel()
&& let Some(float) = tl.tl_data().float.get()
{
float.restack();
}
}
}