Hyprshot
Hyprshot copied to clipboard
Wrong crop in dual-monitor setup
I have a dual-monitor setup:
- primary: 2560x1440 at 1200,200
- secondary: 1200x1920 at 0,0 (to the left of the primary and rotated to portrait 90°)
Both slurp and grim function correctly but using Hyprshot the image is cropped to the wrong dimensions.
Slurp output when selecting displays:
> slurp -o
0,0 1200x1920
> slurp -o
1200,200 2560x1440
Taking screenshots with grim using grim -o DP-2
or grim -o DP-3
also works correctly.
With Hyprshot I get the correct result on the primary display:
> hyprshot --clipboard-only -m output -d
Geometry: 1200,200 2560x1440
Crop: 1200,200 2560x1440
On the secondary this happens:
> hyprshot --clipboard-only -m output -d
Geometry: 0,0 1200x1920
Crop: 0,0 1200x1640
Somehow a screenshot of the secondary display is cropped to the height of the primary display plus the 200px offset. If I remove the offset, i.e. move primary display to 1200,0 the screenshot is cropped to 1440.