CoverflowAltTab icon indicating copy to clipboard operation
CoverflowAltTab copied to clipboard

`Window Preview Size to Monitor Size Ratio` fails to take into consideration display scaling on Wayland

Open FelixFourcolor opened this issue 2 years ago • 10 comments

The property allows values from 0 to 1. However, if the display scaling is 200%, the value only goes up to 0.5; you can set it above 0.5, but it will be rendered the same as 0.5. And similarly if the display scaling is 300%, the value only goes up to 0.33.

This bug is only seen on Wayland.


Gnome 45 Extension v.70

FelixFourcolor avatar Dec 25 '23 23:12 FelixFourcolor

Hey thanks for the report! I'll look into this like now because I'm on holiday with nothing to do. Is this a new thing? Or seen in previous versions too?

dsheeler avatar Dec 26 '23 00:12 dsheeler

If I remember correctly v.70 just came out today? Then I'm sure it's also in v.69, but I can't remember before that.

FelixFourcolor avatar Dec 26 '23 01:12 FelixFourcolor

Yes, v70 just today. Thanks!

dsheeler avatar Dec 26 '23 02:12 dsheeler

It seems that this behavior is also app-dependent. Most apps behave as I described above, but I found that vscode and steam are scaled properly.

To exaggerate the effect I show Window Preview Size to Monitor Size Ratio=1 and display scaling 300%.

Screencast from 2023-12-27 12-34-55.webm

FelixFourcolor avatar Dec 27 '23 20:12 FelixFourcolor

duplicate of #184

dsheeler avatar Jan 08 '24 05:01 dsheeler

@FelixFourcolor, I don't fully understand the situation. It might be that xwayland apps don't work but native wayland apps do or vice versa. Or something more complicated, like some xwayland apps work and some don't...

dsheeler avatar Jan 08 '24 20:01 dsheeler

@dsheeler I didn't think about it, but that makes sense. I think xwayland apps are scaled correctly, only native ones are broken.

FelixFourcolor avatar Jan 08 '24 21:01 FelixFourcolor

@dsheeler any updates on this bug? It still bugs me to this day.

FelixFourcolor avatar Jun 03 '24 22:06 FelixFourcolor

No updates, sorry. My last comment still describes my state of understanding which is my understanding is incomplete. I feared it was the case that it's up to the application to scale properly in xwayland and I couldn't really do anything about it. I forget what the app needs to do at this point. I also find it hard to get motivated because I sitll use X11 and this is a "temporary" problem that exists only as long as xwayland is necessary. But how long will that be???

dsheeler avatar Jun 03 '24 23:06 dsheeler

Unless I misinterpreted what you said, I think you got it the other way around. It's native wayland apps that don't scale properly, xwayland apps work.

FelixFourcolor avatar Jun 03 '24 23:06 FelixFourcolor