From 0bd41a0daecfb2da34ea52f6a46b9fc0d162a47a Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 4 Jul 2018 15:38:08 +1000 Subject: 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. --- sway/input/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } seat_send_focus(container, seat); - container_damage_whole(container); + container_damage_whole(container->parent); } // clean up unfocused empty workspace on new output -- cgit v1.2.3-54-g00ecf