Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

Windows in xwayland appear with large text after a while #56

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by aereaux Sunday Apr 17, 2016 at 21:32 GMT Originally opened as https://github.com/Cloudef/wlc/issues/152


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.

WLCIssuesBot commented 7 years ago

Comment by 4e554c4c Monday Apr 18, 2016 at 13:26 GMT


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

WLCIssuesBot commented 7 years ago

Comment by Earnestly Monday Apr 18, 2016 at 13:49 GMT


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.

WLCIssuesBot commented 7 years ago

Comment by aereaux Monday Apr 18, 2016 at 15:00 GMT


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.

WLCIssuesBot commented 7 years ago

Comment by Earnestly Monday Apr 18, 2016 at 15:38 GMT


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.

WLCIssuesBot commented 7 years ago

Comment by aereaux Monday Apr 18, 2016 at 20:10 GMT


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

WLCIssuesBot commented 7 years ago

Comment by rubdos Saturday May 21, 2016 at 15:02 GMT


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.

WLCIssuesBot commented 7 years ago

Comment by aereaux Thursday Jun 23, 2016 at 18:46 GMT


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.