diff options
-rw-r--r-- | types/wlr_screencopy_v1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index 4ca659a4..ee33dadd 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -45,8 +45,7 @@ static void screencopy_damage_accumulate(struct screencopy_damage *damage, if (state->committed & WLR_OUTPUT_STATE_DAMAGE) { // If the compositor submitted damage, copy it over - pixman_region32_union(region, region, - (pixman_region32_t *) &state->damage); + pixman_region32_union(region, region, &state->damage); pixman_region32_intersect_rect(region, region, 0, 0, output->width, output->height); } else if (state->committed & WLR_OUTPUT_STATE_BUFFER) { |