1
0
Fork 0
forked from wry/wry

tree: never focus wl-subsurface surfaces

This commit is contained in:
Julian Orth 2022-05-05 14:04:15 +02:00
parent 5afde58086
commit 4584dee160
15 changed files with 150 additions and 35 deletions

View file

@ -356,8 +356,12 @@ impl SurfaceExt for ZwlrLayerSurfaceV1 {
}
}
fn accepts_kb_focus(&self) -> bool {
self.keyboard_interactivity.get() != KI_NONE
fn focus_node(&self) -> Option<Rc<dyn Node>> {
if self.keyboard_interactivity.get() != KI_NONE {
Some(self.surface.clone())
} else {
None
}
}
}