Closed git-bruh closed 1 year ago
I'm facing the same error in Hyprland
with scaling set to 2
Mostly done with a fix, should get it pushed later today :)
Okay, this should work nicely now, at least with scales that are multiples of .25. For some reason it's not working with scales like 1.1, 1.2, and I suspect it's not my fault but I'm not sure.
Please reopen if it doesn't work
@russelltg Running into the issue with a scaling of 1.5 running the AUR git package
Can you give the exact version (pacman -Qi wl-screenrec-git
) and also which compositor you use? It works for me with r72.7b367d3-1
and hyprland.
Edit: works fine on sway too
@russelltg Looks like i was running an older version, my mistake.
Hey, when the scale in
sway
is set to fractional values like1.25
or1.5
,wlroots
returns a protocol error, causing this exceptionThis is because the
logical_size
returned varies depending upon the scale, at a scale of1
, it returns 1920x1080, 1536x864 at1.25
, and 1280x720 at1.5
Code in wlroots
https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/types/wlr_screencopy_v1.c#L357
Thanks! Didn't get enough time to debug this further