shell: Lift move_current_element to consider sticky windows

This commit is contained in:
Victoria Brekenfeld 2023-12-22 15:48:05 +00:00 committed by Victoria Brekenfeld
parent c6e6f1b181
commit a829978ce9
3 changed files with 36 additions and 18 deletions

View file

@ -753,20 +753,6 @@ impl Workspace {
})
}
pub fn move_current_element<'a>(
&mut self,
direction: Direction,
seat: &Seat<State>,
) -> MoveResult {
if let Some(f) = self.fullscreen.as_ref() {
MoveResult::MoveFurther(KeyboardFocusTarget::Fullscreen(f.surface.clone()))
} else {
self.floating_layer
.move_current_element(direction, seat, self.tiling_layer.theme.clone())
.or_else(|| self.tiling_layer.move_current_node(direction, seat))
}
}
pub fn render<'a, R>(
&self,
renderer: &mut R,