1
0
Fork 0
forked from wry/wry

tree: focus floating toplevel after mapping

This commit is contained in:
Julian Orth 2024-05-22 13:16:54 +02:00
parent 1c984b804d
commit 87a744e1c6

View file

@ -621,7 +621,12 @@ impl State {
}
Rect::new_sized(x1, y1, width, height).unwrap()
};
FloatNode::new(self, workspace, position, node);
FloatNode::new(self, workspace, position, node.clone());
if node.node_visible() {
if let Some(seat) = self.seat_queue.last() {
node.node_do_focus(&seat, Direction::Unspecified);
}
}
}
pub fn show_workspace(&self, seat: &Rc<WlSeatGlobal>, name: &str) {