diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 502ed5ac..92d9d7ec 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -618,7 +618,10 @@ void seat_set_focus_warp(struct sway_seat *seat, struct sway_node *node, | |||
618 | if (last_focus) { | 618 | if (last_focus) { |
619 | seat_send_unfocus(last_focus, seat); | 619 | seat_send_unfocus(last_focus, seat); |
620 | node_set_dirty(last_focus); | 620 | node_set_dirty(last_focus); |
621 | node_set_dirty(node_get_parent(last_focus)); | 621 | struct sway_node *parent = node_get_parent(last_focus); |
622 | if (parent) { | ||
623 | node_set_dirty(parent); | ||
624 | } | ||
622 | } | 625 | } |
623 | 626 | ||
624 | // Put the container parents on the focus stack, then the workspace, then | 627 | // Put the container parents on the focus stack, then the workspace, then |