aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-05-10 18:46:14 -0400
committerLibravatar GitHub <noreply@github.com>2018-05-10 18:46:14 -0400
commitfbddd34b47fd774631d2a5495e4b0b69acb34688 (patch)
tree7b74a17124cb1d8a0adf777b9cb337574bea52a7 /sway/input/seat.c
parentMerge pull request #1932 from emersion/fix-layer-shell-exclusive (diff)
parentFix damage tracking on HiDPI (diff)
downloadsway-fbddd34b47fd774631d2a5495e4b0b69acb34688.tar.gz
sway-fbddd34b47fd774631d2a5495e4b0b69acb34688.tar.zst
sway-fbddd34b47fd774631d2a5495e4b0b69acb34688.zip
Merge pull request #1923 from emersion/full-damage-tracking
Implement full damage tracking
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c5
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,
530 if (container->type == C_VIEW) { 530 if (container->type == C_VIEW) {
531 seat_send_focus(seat, container); 531 seat_send_focus(seat, container);
532 } 532 }
533 container_damage_whole(container);
533 } 534 }
534 535
535 // clean up unfocused empty workspace on new output 536 // clean up unfocused empty workspace on new output
@@ -575,6 +576,10 @@ void seat_set_focus_warp(struct sway_seat *seat,
575 } 576 }
576 } 577 }
577 578
579 if (last_focus) {
580 container_damage_whole(last_focus);
581 }
582
578 if (last_focus && last_focus->type == C_VIEW && 583 if (last_focus && last_focus->type == C_VIEW &&
579 !input_manager_has_focus(seat->input, last_focus)) { 584 !input_manager_has_focus(seat->input, last_focus)) {
580 struct sway_view *view = last_focus->sway_view; 585 struct sway_view *view = last_focus->sway_view;