mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Add missing interactively moved window check in center_window
This commit is contained in:
@@ -2041,6 +2041,12 @@ impl<W: LayoutElement> Layout<W> {
|
||||
}
|
||||
|
||||
pub fn center_window(&mut self, id: Option<&W::Id>) {
|
||||
if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move {
|
||||
if id.is_none() || id == Some(move_.tile.window().id()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let workspace = if let Some(id) = id {
|
||||
Some(self.workspaces_mut().find(|ws| ws.has_window(id)).unwrap())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user