Skip to content

Commit

Permalink
#1577 fix issue with window warp
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Dec 27, 2022
1 parent 53c426d commit 86f1e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## [Unreleased]
### Changed
- Fixed issue with window focusing caused by incorrectly intercepting a synthesized mouse event [#1551](https://github.com/koekeishiya/yabai/issues/1551)
- Fixed issue with window warping across displays with only a single window tiled at both displays [#1577](https://github.com/koekeishiya/yabai/issues/1577)

## [5.0.2] - 2022-12-16
### Changed
Expand Down
4 changes: 3 additions & 1 deletion src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,9 @@ enum window_op_error window_manager_warp_window(struct space_manager *sm, struct

if (a_node == b_node) return WINDOW_OP_ERROR_SAME_STACK;

if (a_node->parent == b_node->parent && a_node->window_count == 1) {
if (a_node->parent && b_node->parent &&
a_node->parent == b_node->parent &&
a_node->window_count == 1) {
if (window_node_contains_window(b_node, b_view->insertion_point)) {
b_node->parent->split = b_node->split;
b_node->parent->child = b_node->child;
Expand Down

0 comments on commit 86f1e91

Please sign in to comment.