diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2023-07-01 10:02:27 -0400 |
---|---|---|
committer | Manuel Stoeckl <code@mstoeckl.com> | 2023-07-01 10:05:30 -0400 |
commit | bbd53b3b46312840f1e699c7a8c49ccadfc438b4 (patch) | |
tree | cd4150e4f9b8608ea3afc982e38dd38601e3641c | |
parent | 57a03137799d0e66bb635cc2b1b18b18dcaa92cc (diff) |
screencopy-v1: fix logical->physical region transform
This now matches the transformations used for e.g. cursor scissor
regions and damage.
-rw-r--r-- | types/wlr_screencopy_v1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index 7fdb4a50..a29b5f27 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -542,7 +542,8 @@ static void capture_output(struct wl_client *wl_client, buffer_box = *box; - wlr_box_transform(&buffer_box, &buffer_box, output->transform, ow, oh); + wlr_box_transform(&buffer_box, &buffer_box, + wlr_output_transform_invert(output->transform), ow, oh); buffer_box.x *= output->scale; buffer_box.y *= output->scale; buffer_box.width *= output->scale; |