🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #24865

Re: Positioning xdm-login window

#24865
From: Stephane Blain
Date: Tue, 12 Jan 1993 15:31
38 lines
2036 bytes
In article <2657@eagle.ukc.ac.uk>, rlh@ukc.ac.uk (R.L.Hesketh) writes:
> 
> 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

Richard,

it's exactly my problem.  Before your mail, I have talked to the Sun people,
and they told me that was a proplem of the xdm from MIT X11R4.  I have
modified the xdm code myself (exactly the same lines that you told)
and it work well.  But now then I know that was corrected in the X11R5,
I will use the xdm from X11R5.

P.S.: Excuse my english, I'm not biligual...

--------------------------------------------------------------
Stephane BLAIN ing. jr      | E-mail : stblain@stam.qe.bell.ca
			    | Tel    : (514) 870-2638
			    | Fax    : (514) 391-3146
			    | Pagette: (514) 339-3379
Technical Details
Message-ID: <C0qz48.1zr@animal.er.bell.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!geac!censor!animal!blmc45!blain
References: <C01L6D.9KF@animal.er.bell.ca> <1993Jan4.174352.22485@mlb.semi.harris.com> <2657@eagle.ukc.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!geac!censor!animal!blmc45!blain
From: blain@blmc45.QE.Bell.CA (Stephane Blain)
Subject: Re: Positioning xdm-login window
Message-ID: <C0qz48.1zr@animal.er.bell.ca>
Sender: blain@blmc45 (Stephane Blain)
Reply-To: stblain@stam.qe.bell.ca
Organization: CARC -- Bell Canada
References: <C01L6D.9KF@animal.er.bell.ca> <1993Jan4.174352.22485@mlb.semi.harris.com> <2657@eagle.ukc.ac.uk>
Distribution: na
Date: Tue, 12 Jan 1993 15:31:19 GMT
Lines: 38