Re: geometry question
Re: geometry question
- Subject: Re: geometry question
- From: Greg Parker <email@hidden>
- Date: Tue, 21 Jan 2003 19:05:33 -0800
On Tuesday, January 21, 2003, at 06:31 PM, Doug McNutt wrote:
Where is the man page for geometry as applied to X11?
-geometry 80x66+100+200
Are the units pixels? 80x66 is tiny. Or are they character counts in
some font? What font? If so, 100 and 200 seem like unreasonably large
offsets.
For xterm, 80x66 is in characters, using whatever font the xterm uses.
Some programs use characters, like xterm and emacs, and others use
pixels.
The position +100+200 is in pixels in every program I know of.
Where is the zero point? 0,0 in the Mac gWorld? Or perhaps the most
negative values in the bounding rectangle of gWorld? Is positive Y
downward as in Inside Macintosh? Is the upper left corner of the Mac
menubar still at 0,0 ?
For a rectangular X11 screen, (0,0) is in the top-left corner with
increasing y going down. The behavior for everything else like multiple
screens and the Mac OS menu bar is implementation-dependent.
In XDarwin's rootless mode, Xinerama is used for multiple-screen
support, and (0,0) is the top-left corner of the rectangle that
encloses all screens. In your case, (0,0) isn't on any physical screen.
XDarwin shrinks the X11 screen so it doesn't include the Mac OS menu
bar, so (0,0) may be just below the menu bar (depending on screen
arrangement).
I haven't tested this, but I assume X11.app also puts (0,0) at the
top-left corner of the screen-enclosing rectangle. (Most X11 programs
don't handle negative screen coordinates very well, so it's the only
good solution.) I do know that X11.app currently does not exclude
screen space for the Mac OS menu bar, so (0,0) may be under the menu
bar.
Deep down my problem is that windows are opening out of reach above my
left monitor and to the left of my upper monitor which sits above the
main one. There's no display space there! I need a way to tell the
ssh'd Linux box to bring up gnumeric on a particular monitor and not
to spread it over all four so that I can't reach either the grow box
or the drag bar.
There are two additional features of -geometry that may help you here:
* You can omit the screen size and only use the position. "-geometry
+100+200" is legal, and may be useful if the default size is OK but the
default position is not. Then you don't have to care whether the size
is in pixels or characters or something else.
* You can also specify negative numbers in the position offsets to
position the window relative to the right and/or bottom sides. For
example, "-geometry -10+10" places the window ten pixels from the
upper-right corner. This might help you because the top-left corner
isn't on any of your screens, but at least two of the other corners are.
--
Greg Parker email@hidden Java & Objective-C
email@hidden XDarwin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.