Skip to content

Commit

Permalink
layout/tests: Allow AddWindowRightOf interactive moved window
Browse files Browse the repository at this point in the history
Guess I forgot this.
  • Loading branch information
YaLTeR committed Nov 26, 2024
1 parent 60624d6 commit 985ca7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4248,9 +4248,13 @@ mod tests {
let mut found_right_of = false;

if let Some(InteractiveMoveState::Moving(move_)) = &layout.interactive_move {
if move_.tile.window().0.id == id {
let win_id = move_.tile.window().0.id;
if win_id == id {
return;
}
if win_id == right_of_id {
found_right_of = true;
}
}

match &mut layout.monitor_set {
Expand Down

0 comments on commit 985ca7b

Please sign in to comment.