Supreeeme / xwayland-satellite

Xwayland outside your Wayland
Mozilla Public License 2.0
94 stars 4 forks source link

Implement force scaling to 1 #28

Open frigaut opened 2 weeks ago

frigaut commented 2 weeks ago

Hi there - I am using xwayland-satellite with the niri compositor, for the occasional X app. Now that niri has implemented fractional scaling (I am using 1.5), the X windows are, of course, blurry. That's a known limitation. hyprland has an interesting twist on their implementation of xwayland: they offer a force_zero_scaling option, and when this is set, xwayland is not scaling its windows. IMO, that is convenient, as I can always fudge the display DPI to get things legible, and they appear crisp.

Would it be possible to implement something like this in xwl-s? Thanks.

YaLTeR commented 2 weeks ago

Maybe something like, tell Xwayland that the scale is 1, then use fractional-scale + viewporter to draw it at physical 1x on the host?