home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!rook.ukc.ac.uk!eagle.ukc.ac.uk!rlh
- From: rlh@ukc.ac.uk (R.L.Hesketh)
- Newsgroups: comp.windows.x
- Subject: Re: Positioning xdm-login window
- Message-ID: <2657@eagle.ukc.ac.uk>
- Date: 6 Jan 93 14:46:49 GMT
- References: <C01L6D.9KF@animal.er.bell.ca> <1993Jan4.174352.22485@mlb.semi.harris.com>
- Reply-To: rlh@ukc.ac.uk (Richard Hesketh)
- Organization: Computing Lab, University of Kent at Canterbury, UK.
- Lines: 29
- Nntp-Posting-Host: eagle.ukc.ac.uk
-
- In article <1993Jan4.174352.22485@mlb.semi.harris.com> kswatek@FREEDOM.ess.harris.com writes:
- >In article 9KF@animal.er.bell.ca, blain@blmc45.QE.Bell.CA (Stephane Blain) writes:
- >>
- >>That's work for width and height, but not for x and y. I have read
- >>the FAQ, but nothing on it. There's someone have an idea?
- >
- >These settings can be changed in the '/usr/openwin/lib/xdm/Xsession'
- >file.
-
- I think Stephane wants to set the login window put up by xdm before
- any session is started. I suspect that the xdm in OpenWindows 3.0
- is derived from the R4 version of the MIT xdm, which overrides any
- settings for x and y with the code ...
-
- x = (WidthOfScreen (XtScreen (w)) - w->core.width) / 2;
- y = (HeightOfScreen (XtScreen (w)) - w->core.height) / 3;
-
- However in R5 the code is ...
-
- if ((x = w->core.x) == -1)
- x = (int)(WidthOfScreen (XtScreen (w)) - w->core.width) / 2;
- if ((y = w->core.y) == -1)
- y = (int)(HeightOfScreen (XtScreen (w)) - w->core.height) / 3;
-
- and x and y are set to -1 by default. So the solution would be
- to use xdm from the R5 source (I for one would be interested to hear what
- happens if you try this).
-
- Richard
-