<div dir="ltr">Hey,<div><br></div><div>I just got around to trying Wayland on my ThinkPad X1 Carbon 2015.</div><div><br></div><div>The machine has a 2560x1440px display with 220 DPI, hence I’m using it as a “retina display”, i.e. with a scale factor of 2. On Xorg, I achieve this by setting “Xft.dpi: 192” in my ~/.Xresources. All the applications then come up with crystal-clear text, in comparison to a regular 96 dpi screen at least… :)</div><div><br></div><div>When running weston without a ~/.config/weston.ini, everything is rendered with the native resolution of 2560x1440px, meaning the text is unreadably small (see the left weston-terminal window in <a href="http://t.zekjur.net/xwayland-scale-1-x.png">http://t.zekjur.net/xwayland-scale-1-x.png</a>).</div><div><br></div><div>Therefore, I’ve set the following in my ~/.config/weston.ini:</div><div><br></div><div>  [output]</div><div>  name=eDP-1</div><div>  scale=2</div><div><br></div><div>This is recommended on <a href="https://wiki.archlinux.org/index.php/Wayland#High_DPI_displays">https://wiki.archlinux.org/index.php/Wayland#High_DPI_displays</a>, but I’m not sure if it’s actually the best method or the desired end state of hi-dpi support in wayland/weston. My uncertainty stems from the fact that while text in weston-terminal is rendered clearly, all assets (icons, mouse cursors) are low-resolution, even though higher-resolution versions are available.</div><div><br></div><div>For the actual issue I’m trying to describe, my test procedure is to use “xrdb ~/.Xresources && urxvt”, then place the urxvt window such that it occupies about half of the screen.</div><div><br></div><div>With scale=2 (see <a href="http://t.zekjur.net/xwayland-scale-2-x.png">http://t.zekjur.net/xwayland-scale-2-x.png</a>), I get a window with about 640px width in xwininfo and an extremely big font. I suppose this is because the Xwayland window (is that how it works?) is scaled to 2x.</div><div><br></div><div>With scale=1 (see <a href="http://t.zekjur.net/xwayland-scale-1-x.png">http://t.zekjur.net/xwayland-scale-1-x.png</a>), I get a window with about 1280px width in xwininfo and the font I expect.</div><div><br></div><div>So, it seems to me that I have to use scale=2 to get wayland apps to render correctly on a hi-dpi screen, and scale=1 to get xwayland apps to render correctly on a hi-dpi screen, and I obviously can’t do both at the same time.</div><div><br></div><div>Shall I file a bug about this, or am I misunderstanding something?</div><div><br></div><div>Thanks,</div><div>Best regards,</div><div>Michael</div></div>