inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
372 stars 13 forks source link

HiDPI support #128

Open PromyLOPh opened 1 year ago

PromyLOPh commented 1 year ago

For screens with high pixel density HiDPI (i.e. output scaling) support is essential. I rebased the branch support_wlr-output-management on top of main and added send_enter events, which appear to be used by surfaces to adjust their scale to the output. It seems to work for „normal“ windows, but not for waybar and XWayland windows. I’m stuck and have no idea why these are treated differently.

How to reproduce: Use my branch from https://github.com/PromyLOPh/vivarium/tree/support_wlr-output-management, clone and build wlr-randr, run vivarium, run ./build/wlr-randr --output DP-1 --scale 2 to adjust output scale, start an XWayland application, make it floating and move it around: screenshot