added cursor_follows_focus and focus_follows_cursor
This commit is contained in:
parent
52280e9823
commit
7da0bc430a
22 changed files with 844 additions and 384 deletions
|
|
@ -728,7 +728,7 @@ impl FloatingLayout {
|
|||
self.space.element_geometry(elem).map(RectExt::as_local)
|
||||
}
|
||||
|
||||
pub fn element_under(&mut self, location: Point<f64, Local>) -> Option<KeyboardFocusTarget> {
|
||||
pub fn element_under(&self, location: Point<f64, Local>) -> Option<KeyboardFocusTarget> {
|
||||
self.space
|
||||
.element_under(location.as_logical())
|
||||
.map(|(mapped, _)| mapped.clone().into())
|
||||
|
|
|
|||
|
|
@ -3088,10 +3088,7 @@ impl TilingLayout {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn element_under(
|
||||
&mut self,
|
||||
location_f64: Point<f64, Local>,
|
||||
) -> Option<KeyboardFocusTarget> {
|
||||
pub fn element_under(&self, location_f64: Point<f64, Local>) -> Option<KeyboardFocusTarget> {
|
||||
let location = location_f64.to_i32_round();
|
||||
|
||||
for (mapped, geo) in self.mapped() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue