mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
screencopy-v1: fix logical->physical region transform
This now matches the transformations used for e.g. cursor scissor regions and damage.
This commit is contained in:
parent
57a0313779
commit
bbd53b3b46
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ static void capture_output(struct wl_client *wl_client,
|
||||||
|
|
||||||
buffer_box = *box;
|
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.x *= output->scale;
|
||||||
buffer_box.y *= output->scale;
|
buffer_box.y *= output->scale;
|
||||||
buffer_box.width *= output->scale;
|
buffer_box.width *= output->scale;
|
||||||
|
|
Loading…
Reference in a new issue