[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] Determine Screen Sizes

From: Jens Thoms Toerring
Subject: Re: [XForms] Determine Screen Sizes
Date: Sun, 16 Nov 2014 20:06:02 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Serge,

On Sun, Nov 16, 2014 at 12:07:24PM -0500, Serge Bromow wrote:
> Not sure this is an Xforms question but I will put it out there. We
> are doing more and more work with dual monitors. I have historically
> used "fl_scrw, fl_scrh" to determine the screen size for the purpose
> of placing forms, scaling and so on. In my personal case both
> screens are identical so it is fairly obvious that the width
> returned by fl_scrw, 3840(x1080) could not be the real size of a
> known aspect ration so I simply divide by 2 to determine the real
> size of each screen. More recently people are mixing screen sizes
> rendering my simple formula mute. I can parse xrandr output to gain
> the individual screen sizes but was wondering if there is a call in
> xforms or in X to discover individual monitor sizes?

Interesting question! As far as I can see XForms is not even
aware of two screens existing. 'fl_scrw' and 'fl_scrh' are
set by the following calls of X11 macros

    fl_scrh = DisplayHeight( fl_display, fl_screen );
    fl_scrw = DisplayWidth( fl_display, fl_screen );

There's nothing for checking if there is more than a screen -
when XForms was written stuff like that simply didn't exist;-)
Probably this would require linking with that libXext (or
whatever has the functions used xrandr), which is not the
case at the moment.

It also would be interesting to know what the values of
'fl_scrw' and fl_scrh' are when there are screen of dif-
ferent sizes - could be something strange.

Since I've never used more than a single screen I'll have
to borrow a second one and do some playing around before
I can saty anything more...

                       Best regards, Jens
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de

reply via email to

[Prev in Thread] Current Thread [Next in Thread]