aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-04 15:38:08 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-04 15:38:08 +1000
commit0bd41a0daecfb2da34ea52f6a46b9fc0d162a47a (patch)
treea757d4a7588925e70a79f098115e324954ebfa49
parentMerge pull request #2194 from RyanDwyer/fix-incorrect-render (diff)
downloadsway-0bd41a0daecfb2da34ea52f6a46b9fc0d162a47a.tar.gz
sway-0bd41a0daecfb2da34ea52f6a46b9fc0d162a47a.tar.zst
sway-0bd41a0daecfb2da34ea52f6a46b9fc0d162a47a.zip
Fix focus related damage
When you have an unfocused container (so one view is focused_inactive), and you focus any other view in that container, the view with focused_inactive was not damaged. This is because we damaged the previous focus and new focus, but needed to damage the parent of the new focus.
-rw-r--r--sway/input/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index a934d4a8..6c5abcd8 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -663,7 +663,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
663 } 663 }
664 664
665 seat_send_focus(container, seat); 665 seat_send_focus(container, seat);
666 container_damage_whole(container); 666 container_damage_whole(container->parent);
667 } 667 }
668 668
669 // clean up unfocused empty workspace on new output 669 // clean up unfocused empty workspace on new output