summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-07-11 15:26:47 -0700
committerLibravatar GitHub <noreply@github.com>2018-07-11 15:26:47 -0700
commit2bc18d8cf77c2a4aa47453c4177fdaac29736db8 (patch)
treefc03964ad296f3e0d7d9bf54e004808a9f9200e2 /sway
parentMerge pull request #2245 from RyanDwyer/floating-minmax-size (diff)
parentfix crash on floating windows (diff)
downloadsway-2bc18d8cf77c2a4aa47453c4177fdaac29736db8.tar.gz
sway-2bc18d8cf77c2a4aa47453c4177fdaac29736db8.tar.zst
sway-2bc18d8cf77c2a4aa47453c4177fdaac29736db8.zip
Merge pull request #2248 from Dudemanguy911/fix_crash_on_floating_windows
fix crash on floating windows
Diffstat (limited to 'sway')
-rw-r--r--sway/input/seat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index bf4e8876..be37258f 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -671,7 +671,9 @@ void seat_set_focus_warp(struct sway_seat *seat,
671 // This must happen for both the pending and current children lists. 671 // This must happen for both the pending and current children lists.
672 if (container_is_floating(container)) { 672 if (container_is_floating(container)) {
673 list_move_to_end(container->parent->children, container); 673 list_move_to_end(container->parent->children, container);
674 list_move_to_end(container->parent->current.children, container); 674 if (container_has_ancestor(container, container->current.parent)) {
675 list_move_to_end(container->parent->current.children, container);
676 }
675 } 677 }
676 678
677 // clean up unfocused empty workspace on new output 679 // clean up unfocused empty workspace on new output