aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-02 20:41:40 +0100
committerLibravatar emersion <contact@emersion.fr>2018-06-02 20:42:26 +0100
commit51eee3aecc19063985a34226b287d1261a52ad18 (patch)
tree79120101f7927433b13c992415286409a4ee212f /sway/desktop/output.c
parentMerge pull request #2091 from martinetd/config-block-use-after-free (diff)
downloadsway-51eee3aecc19063985a34226b287d1261a52ad18.tar.gz
sway-51eee3aecc19063985a34226b287d1261a52ad18.tar.zst
sway-51eee3aecc19063985a34226b287d1261a52ad18.zip
Schedule a frame even if damage is empty
Diffstat (limited to 'sway/desktop/output.c')
-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,