tiling: Mouse dragging visuals

This commit is contained in:
Victoria Brekenfeld 2023-07-21 16:08:55 +02:00
parent bd5d573d08
commit 85edfc7141
4 changed files with 1034 additions and 308 deletions

View file

@ -202,14 +202,15 @@ impl Workspace {
}
pub fn element_under(
&self,
&mut self,
location: Point<f64, Logical>,
overview: OverviewMode,
) -> Option<(PointerFocusTarget, Point<i32, Logical>)> {
self.floating_layer
.space
.element_under(location)
.map(|(mapped, p)| (mapped.clone().into(), p))
.or_else(|| self.tiling_layer.element_under(location))
.or_else(|| self.tiling_layer.element_under(location, overview))
}
pub fn element_geometry(&self, elem: &CosmicMapped) -> Option<Rectangle<i32, Logical>> {