aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.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/desktop/output.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/desktop/output.c')
-rw-r--r--sway/desktop/output.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index e39ef8db..6d5777f3 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -754,10 +754,7 @@ static void render_container_tabbed(struct sway_output *output,
754 } 754 }
755 struct sway_seat *seat = input_manager_current_seat(input_manager); 755 struct sway_seat *seat = input_manager_current_seat(input_manager);
756 struct sway_container *focus = seat_get_focus(seat); 756 struct sway_container *focus = seat_get_focus(seat);
757 struct sway_container *current = seat_get_focus_inactive(seat, con); 757 struct sway_container *current = seat_get_active_child(seat, con);
758 while (current->parent != con) {
759 current = current->parent;
760 }
761 struct border_colors *current_colors = NULL; 758 struct border_colors *current_colors = NULL;
762 759
763 // Render tabs 760 // Render tabs
@@ -1082,9 +1079,7 @@ static void output_damage_view(struct sway_output *output,
1082 return; 1079 return;
1083 } 1080 }
1084 1081
1085 struct sway_container *workspace = container_parent(view->swayc, 1082 if (!view_is_visible(view)) {
1086 C_WORKSPACE);
1087 if (workspace->sway_workspace->fullscreen && !view->is_fullscreen) {
1088 return; 1083 return;
1089 } 1084 }
1090 1085