diff options
author | emersion <contact@emersion.fr> | 2018-05-05 19:49:02 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-10 23:03:50 +0100 |
commit | 70b80b4698449f5bc3e2c5bf755439249db2fc29 (patch) | |
tree | 5c368355dd8bc32208404fd36930017820b4ae31 /sway | |
parent | bec80f15519f686c64485685289155568c9bfa9e (diff) | |
download | sway-70b80b4698449f5bc3e2c5bf755439249db2fc29.tar.xz |
Damage container on focus
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/seat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 443fe367..2c279ff2 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -530,6 +530,7 @@ void seat_set_focus_warp(struct sway_seat *seat, if (container->type == C_VIEW) { seat_send_focus(seat, container); } + container_damage_whole(container); } // clean up unfocused empty workspace on new output @@ -575,6 +576,10 @@ void seat_set_focus_warp(struct sway_seat *seat, } } + if (last_focus) { + container_damage_whole(last_focus); + } + if (last_focus && last_focus->type == C_VIEW && !input_manager_has_focus(seat->input, last_focus)) { struct sway_view *view = last_focus->sway_view; |