Skip to content

Commit

Permalink
render: Use wlr_presentation_surface_sampled_on_output for fullscreen…
Browse files Browse the repository at this point in the history
… surfaces

See swaywm/wlroots#1919
  • Loading branch information
dos1 committed Mar 19, 2021
1 parent f06fa17 commit 1c459f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/render.c
Expand Up @@ -282,15 +282,16 @@ static bool scan_out_fullscreen_view(PhocOutput *output) {
return false;
}

wlr_presentation_surface_sampled(output->desktop->presentation, surface);

#if WLR_VERSION_MAJOR == 0 && WLR_VERSION_MINOR < 11
if (!wlr_output_attach_buffer(wlr_output, surface->buffer)) {
return false;
}
#else
wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
#endif

wlr_presentation_surface_sampled_on_output(output->desktop->presentation, surface, output->wlr_output);

return wlr_output_commit(wlr_output);
}

Expand Down

0 comments on commit 1c459f2

Please sign in to comment.