home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20806 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.6 KB

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