Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong window size after requesting win:size in looking-glass-client #1200

Open
hepp3n opened this issue Feb 4, 2025 · 2 comments
Open

Wrong window size after requesting win:size in looking-glass-client #1200

hepp3n opened this issue Feb 4, 2025 · 2 comments

Comments

@hepp3n
Copy link

hepp3n commented Feb 4, 2025

Hey,

I'm using looking glass for my output in kvm. The client has argument we can pass, to requesting specific window size when floating. Basically we need to pass a win:size=WxH argument to client and it will open in desired size.

In cosmic-comp it does not works, or partially? I'm not sure. For 1080p resolution in windows guest and looking-glass we get proper size and I can see it because screen does not have black bars (LG client keeping aspect ratio). But when I set 2560x1600 resolution in windows, and ask for this window size, I got black bars.

Image

My monitor has 3840x2160 resolution which is set in cosmic-settings. Also I don't use any scaling so it's set to 100%.

Image

There is a log file from WAYLAND_DEBUG=1

cosmic-comp-debug.txt

@hepp3n
Copy link
Author

hepp3n commented Feb 4, 2025

Ok, so I checked the screenshot size quickly. For attached image from looking-glass. It has this resolution: 2560×1336 so it's definitely not requested one. I did notice it before, it has wrong height, when width looks ok.

And the size I was requesting was:
looking-glass-client win:size=2560x1800

@hepp3n
Copy link
Author

hepp3n commented Feb 6, 2025

I can say, gamescope windows in windowed or borderless, starting with similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant