shell: Unify element_for_(x11_|wl_)surface
This commit is contained in:
parent
dbe2a073ef
commit
6858238bd6
13 changed files with 56 additions and 105 deletions
|
|
@ -13,7 +13,7 @@ impl XWaylandKeyboardGrabHandler for State {
|
|||
.shell
|
||||
.workspaces
|
||||
.spaces()
|
||||
.find_map(|x| x.element_for_wl_surface(surface))?;
|
||||
.find_map(|x| x.element_for_surface(surface))?;
|
||||
Some(KeyboardFocusTarget::Element(element.clone()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue