Skip to content

Commit

Permalink
(#3461) bugfix: wlr screencopy now properly works at scale when scre…
Browse files Browse the repository at this point in the history
…enshotting an output (#3474)

fixes #3461
  • Loading branch information
AlanGriffiths authored Jul 11, 2024
2 parents 362fdd3 + d7a79e9 commit 85dc56f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/frontend_wayland/wlr_screencopy_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ void mf::WlrScreencopyManagerV1::capture_output(
{
(void)overlay_cursor;
auto const& output_config = OutputGlobal::from_or_throw(output).current_config();
auto const extents = output_config.extents();
new WlrScreencopyFrameV1{frame, this, ctx, {output, extents, extents.size}};
auto const output_area = output_config.extents();
auto const buffer_size = output_config.modes[output_config.current_mode_index].size;
new WlrScreencopyFrameV1{frame, this, ctx, {output, output_area, buffer_size}};
}

void mf::WlrScreencopyManagerV1::capture_output_region(
Expand Down

0 comments on commit 85dc56f

Please sign in to comment.