Jannis Pohlmann jannis at xfce.org
Tue Feb 17 13:42:29 CET 2009

Am Tue, 17 Feb 2009 12:54:13 +0100
schrieb Nick Schermer <nickschermer at gmail.com>:

> 2009/2/17 Olivier Fourdan <fourdan at gmail.com>:
> > On Tue, Feb 17, 2009 at 9:29 AM, Yves-Alexis Perez
> > <corsac at debian.org> wrote:
> >> Basically, it seems to me that using -1 is really not a good idea,
> >> you don't really know what will happens. 96 maybe, but you're not
> >> really sure. The way gnome-settings-daemon does it is to use the
> >> value stored in gconf if it exists, or ask the xserver what it
> >> thinks (if the value seems impossible (iirc less than 50 or over
> >> 5000), then it uses 96.
> >
> > That's not too much work, I can cook up a patch fairly quickly,
> There is already code to calculate this in the display code iirc.

That code seems to be wrong. According to Brian it assumes all the
monitors you have form one big screen and then calculates the DPI
according to the overall screen size. It would be better to calculate
the DPI only for the first screen and then apply the same value to the

And this should not be done in xfce4-settings because right now the DPI
is reset whenever you enable the custom DPI checkox - which is really
annoying. It should only do that the first time but not again and again.

  - Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20090217/7f8cf682/attachment.pgp>

More information about the Xfce4-dev mailing list