tree: add Node::node_accepts_focus
This commit is contained in:
parent
dbc954dded
commit
5a004c3d31
4 changed files with 20 additions and 0 deletions
|
|
@ -382,6 +382,10 @@ impl Node for Xwindow {
|
|||
self.toplevel_data.node_layer()
|
||||
}
|
||||
|
||||
fn node_accepts_focus(&self) -> bool {
|
||||
self.tl_accepts_keyboard_focus()
|
||||
}
|
||||
|
||||
fn node_do_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, _direction: Direction) {
|
||||
seat.focus_toplevel(self.clone());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue