Jappie3 / wayfreeze

Tool to freeze the screen of a Wayland compositor
GNU Affero General Public License v3.0
19 stars 1 forks source link

2nd monitor gets scaled by wayfreeze. #1

Closed purrpurrn closed 4 months ago

purrpurrn commented 4 months ago

Wayfreeze scales the 2nd monitor with 1.5 scaling but it shouldn't.

System Info:

OS: NixOS 24.05.20240507.b211b39 (Uakari) x86_64 
Kernel: 6.6.30
Shell: bash 5.2.26
Monitors: 1920x1080 (1.5 Scaling), 1920x1080 (1.0 Scaling) 
WM: Hyprland (Wayland)
Terminal: kitty

Screenshot without Wayfreeze: image without wayfreeze

Screenshot with Wayfreeze: image with wayfreeze

Jappie3 commented 4 months ago

I had a suspicion that this bug existed, but since I don't use fractional scaling, I never got around to fixing it. I'll have a look at it later today, thanks for reporting ^^

Jappie3 commented 4 months ago

@purrpurrn took a little longer than expected... can you try #2 please? implements fractional scaling using wp_fractional_scale_v1

I only have one monitor here to test, so I'm not sure how it'll behave with a multi-monitor setup - feel free to comment on the MR There's also some cursor flickering going on (at least on my end), no clue what that is, I can look into that in a few days when I'm less busy

purrpurrn commented 4 months ago

Running

nix shell github:Jappie3/wayfreeze/34a4795d0c36909bd10695b30f385cae7ab0aaf7#wayfreeze

[mew@nos:/etc/nixos]$ wayfreeze

freezes with the same issue and the main monitor isn't freezing at all.

purrpurrn commented 4 months ago

nvm. It does work but only on my 2nd monitor. (I was using the wrong commit)

purrpurrn commented 4 months ago

closing in favour of #2