by colonwqbang · 3y ago · 0 comments
* Getting the display scale just right. I have a 3k by 2k laptop screen. 1x is too small and 2x is too big.
* Getting the mouse cursor to be drawn at a consistent size. Now the size varies when you move it across windows which is unacceptable.
Am I missing something? Both of these seem like basic issues that someone must have figured out a solution to.
For the mouse cursor, I had the same issue with Xwayland windows until I explicitly setup a cursor theme. Now that works too... and I suspect it was also because of that display scale thing.
IIRC, vs code supported some extra arguments (--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland) but this didn't work universally across electron applications and caused very noticeable input lag in others such as Discord.
For mouse cursors changing size, I fixed that on my system by ensuring the XDG desktop portal for KDE was enabled. Not sure that was the real fix, but it seemed to let KDE handle cursor rendering even over GTK windows.
#1 was was never solved by X11 properly, and I'm forced either have large fonts on 27" 2K and ok fonts on 4K 32" or ok fonts on 27" and small on 32", because I'm limited by one Xft.dpi