summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-02 20:50:56 +0100
committerLibravatar GitHub <noreply@github.com>2018-06-02 20:50:56 +0100
commitfb932cf8477120ee9fd9db37be1cd26a603fe0a3 (patch)
tree79120101f7927433b13c992415286409a4ee212f
parentMerge pull request #2091 from martinetd/config-block-use-after-free (diff)
parentSchedule a frame even if damage is empty (diff)
downloadsway-fb932cf8477120ee9fd9db37be1cd26a603fe0a3.tar.gz
sway-fb932cf8477120ee9fd9db37be1cd26a603fe0a3.tar.zst
sway-fb932cf8477120ee9fd9db37be1cd26a603fe0a3.zip
Merge pull request #2094 from emersion/damage-schedule
Schedule a frame even if damage is empty
-rw-r--r--sway/desktop/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 763f053c..964cfe00 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -1066,6 +1066,8 @@ static void damage_surface_iterator(struct wlr_surface *surface, int sx, int sy,
1066 wlr_box_rotated_bounds(&box, rotation, &box); 1066 wlr_box_rotated_bounds(&box, rotation, &box);
1067 wlr_output_damage_add_box(output->damage, &box); 1067 wlr_output_damage_add_box(output->damage, &box);
1068 } 1068 }
1069
1070 wlr_output_schedule_frame(output->wlr_output);
1069} 1071}
1070 1072
1071void output_damage_surface(struct sway_output *output, double ox, double oy, 1073void output_damage_surface(struct sway_output *output, double ox, double oy,