aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-20 09:11:55 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-21 20:16:56 +1000
commitefc07fb3d45e07529e3817b4a1598f2c3256d600 (patch)
tree28a76416b5d3a50fa4db1c459e19a3f42c849d35 /sway/tree/container.c
parentAdd assertion in container_at_view (diff)
downloadsway-efc07fb3d45e07529e3817b4a1598f2c3256d600.tar.gz
sway-efc07fb3d45e07529e3817b4a1598f2c3256d600.tar.zst
sway-efc07fb3d45e07529e3817b4a1598f2c3256d600.zip
Don't track damage for views on inactive tabs
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 62dca487..5c1f42c2 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -522,10 +522,7 @@ static struct sway_container *container_at_tabbed(struct sway_container *parent,
522 } 522 }
523 523
524 // Surfaces 524 // Surfaces
525 struct sway_container *current = seat_get_focus_inactive(seat, parent); 525 struct sway_container *current = seat_get_active_child(seat, parent);
526 while (current->parent != parent) {
527 current = current->parent;
528 }
529 526
530 return container_at(current, ox, oy, surface, sx, sy); 527 return container_at(current, ox, oy, surface, sx, sy);
531} 528}