! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xft.dpi set to insane values
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Xfsettingsd

Comments

Description Harald Judt 2012-01-30 16:53:06 CET
Created attachment 4156 
Make xfsettingsd stop setting insane DPI values

It seems xfsettingsd sets Xft.dpi to insane values:

xrdb -query:
Xft.antialias:  1
Xft.hintstyle   hintmedium
Xft.rgba:   rgb
Xft.dpi:    98304

Actually, this should be "Xft.dpi: 96".

This has weird consequences like being unable to open xterm anymore.

Steps to reproduce:
1) xrdb -remove
1) Open xfce4-settings-manager, change dpi.
2) xrdb -query

Expected results:
Xft.dpi:    96

Actual results:
Xft.dpi:    98304

You won't notice this problem if you have never changed the dpi via the settings manager. The attached patch seems to fix the problem for me.
Comment 1 Harald Judt 2012-01-30 17:19:57 CET
Unfortunately the patch causes strange behaviour with mouse clicks elsewhere.

Hmmm. I launched xfce4-settings-editor and reset the Xft.dpi property there. Now at least everything seems to be back to normal, as long as I don't use xfce-settings-manager to change the DPI.
Comment 2 Nick Schermer editbugs 2012-02-12 18:18:52 CET
Fixed in e49a92a.
Comment 3 Nick Schermer editbugs 2012-02-12 23:03:13 CET
*** Bug 8437 has been marked as a duplicate of this bug. ***

Bug #8415

Reported by:
Harald Judt
Reported on: 2012-01-30
Last modified on: 2012-02-12
Duplicates (1):
  • 8437 Qt-based applications hang with a white window when started in XFCE 4-10 GIT version

People

Assignee:
Nick Schermer
CC List:
3 users

Version

Attachments

Additional information