tree: ensure that floats remain accessible after workspace move
This commit is contained in:
parent
9192446602
commit
3e6640f0ca
2 changed files with 52 additions and 3 deletions
|
|
@ -20,8 +20,8 @@ use {
|
|||
state::State,
|
||||
text::TextTexture,
|
||||
tree::{
|
||||
ContainingNode, Direction, FindTreeResult, FindTreeUsecase, FoundNode, Node, NodeId,
|
||||
NodeVisitorBase, OutputNode, PlaceholderNode, StackedNode, ToplevelNode,
|
||||
ContainingNode, Direction, FindTreeResult, FindTreeUsecase, FloatNode, FoundNode, Node,
|
||||
NodeId, NodeVisitorBase, OutputNode, PlaceholderNode, StackedNode, ToplevelNode,
|
||||
container::ContainerNode, walker::NodeVisitor,
|
||||
},
|
||||
utils::{
|
||||
|
|
@ -127,6 +127,11 @@ impl WorkspaceNode {
|
|||
node.node_visit_children(self);
|
||||
}
|
||||
|
||||
fn visit_float(&mut self, node: &Rc<FloatNode>) {
|
||||
node.adjust_position_after_ws_move(self.0);
|
||||
node.node_visit_children(self);
|
||||
}
|
||||
|
||||
fn visit_xwindow(&mut self, node: &Rc<Xwindow>) {
|
||||
node.tl_workspace_output_changed();
|
||||
node.node_visit_children(self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue