From: Óscar Fuentes on
Óscar Fuentes <ofv(a)wanadoo.es> writes:

[snip]

> Just discovered that gitk maximizes correctly. I'll look into its source
> code with my fingers crossing hoping it doesn't use a binary extension
> for that.

No, gitk is mostly oblivious to screen size.

Maybe there is some X command-line tool that returns the screen size for
screen number N.
From: Alexandre Ferrieux on
On Feb 23, 4:28 pm, Óscar Fuentes <o...(a)wanadoo.es> wrote:
>
> Maybe there is some X command-line tool that returns the screen size for
> screen number N.

(not tested, no multi-head):

xdpyinfo -display :0.0
xdpyinfo -display :0.1
xdpyinfo -display :0.2

-Alex
From: Óscar Fuentes on
Hello Alex.

Alexandre Ferrieux <alexandre.ferrieux(a)gmail.com> writes:

> On Feb 23, 4:28 pm, Óscar Fuentes <o...(a)wanadoo.es> wrote:
>>
>> Maybe there is some X command-line tool that returns the screen size for
>> screen number N.
>
> (not tested, no multi-head):
>
> xdpyinfo -display :0.0
> xdpyinfo -display :0.1
> xdpyinfo -display :0.2

The problem is that my setup is an "extended desktop" one, so Tk is
doing the right thing when it returns the combined width of the two
monitors for [wm screenwidth .] The same applies to xdpyinfo.

`xrandr -q' displays information about each connector and the resolution
it is working on. That could be used. The other solution would be to not
use the "extended desktop" configuration, but I'm failing at doing that
(and I'm not sure what implications it has from the user POV)