wlc icon indicating copy to clipboard operation
wlc copied to clipboard

Windows in xwayland appear with large text after a while

Open aereaux opened this issue 8 years ago • 7 comments

After a while, if I start a new X11 application, it will appear with large text. I'm not sure what causes it, but suspending appears to be at least one of the things that causes it, sometimes. After it happens, killing Xwayland, which causes it to be restarted, seems to stop the issue (at least until it gets triggered again).

Here is an example. The window in the top left was opened before the problem started, and the other two were opened afterwards. 2016-04-17-162736_swaygrab

I am testing this using sway and the master branch. It still appears when just using the example, though.

aereaux avatar Apr 17 '16 21:04 aereaux

Can confirm this. It happends to me spcifically after a TTY switch in X applications such as dmenu and URXVT.

4e554c4c avatar Apr 18 '16 13:04 4e554c4c

Make sure you're not cargo-culting settings like these in your Xresources file:

Xft.dpi:       96
Xft.antialias: true
Xft.rgba:      rgb
Xft.hinting:   true
Xft.autohint:  true
Xft.hintstyle: hintfull  

This is likely causing these issues, the RESOURCE_MANAGER not being updated (xrdb), or being updated with user-defined DPI values which itself not the best thing to do.

Earnestly avatar Apr 18 '16 13:04 Earnestly

The only settings that I have in my .Xresources is this:

URxvt*font: xft:monospace:size=8
URxvt*scrollBar: false

In addition, the problem also happens to thunderbird and dmenu.

aereaux avatar Apr 18 '16 15:04 aereaux

Ah you didn't mention thunderbird; dmenu isn't helpful as it also uses the xft library.

Surely this must be related to DPI changes though as you can see almost similar behaviour in Xorg when using two different pixel density monitors and simply turning them on and off via xrandr.

But I have no idea.

Earnestly avatar Apr 18 '16 15:04 Earnestly

Interestingly, firefox does not seem to be affected according to my limited tests.

aereaux avatar Apr 18 '16 20:04 aereaux

Can confirm those issues. I tried sway last week (awesome thing), but this was one of the issues that made it impossible to keep using it. No problems in Firefox, but indeed extreme large fonts in Thunderbird and some other applications.

rubdos avatar May 21 '16 15:05 rubdos

It does appear that causing this bug to occur by switching VTs and back changes the DPI according to xdpyinfo. However, I could not get it to change back using xrandr.

aereaux avatar Jun 23 '16 18:06 aereaux