tree: restack containing float when node is activated
This commit is contained in:
parent
d038df28f7
commit
afe2022953
4 changed files with 15 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue