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 and Saviq committed Aug 21, 2024
1 parent 38c9b0a commit 58b4611
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 58b4611

Please sign in to comment.