Operating System - HP-UX
1836479 Members
2046 Online
110101 Solutions
New Discussion

positioning of Netscape window in CDE

 
Richard Lathom
Occasional Advisor

positioning of Netscape window in CDE

I have been trying to position the Netscape window that opens on my CDE desktop via an icon. I have placed the following line in my home dir .Xdefaults file:

Netscape*Navigator*Geometry: 1170x885+20-20

But it ignores this. I also tried editing the preferences.js file in my $HOME/.netscape directory (while Netscape was not running, of course). The line is:

user_pref("browser.geometry", "+20-20");

This also seem to have no effect.

What am I doing wrong?

OS level 10.20

Richard Lathom
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: positioning of Netscape window in CDE

what effect does reducing the display size in pixels have ?

also try just setting the geometry and not the size in pixels ? both using $HOME/.Xdefaults and remeber you have to run xrdb -merge or log out of CDE for them to take effect !
Richard Lathom
Occasional Advisor

Re: positioning of Netscape window in CDE

Didn't work but thanks for trying. Changed entry in $HOME/.Xdefaults to:

Netscape*Navigator*Geometry: +20-20

Made no difference. Window seems to come up where it wants to despite all my attempts to coerce it open where I want it.
Alex Glennie
Honored Contributor

Re: positioning of Netscape window in CDE

all i can think is to try editting /opt/netscape/Netscape.ad and using the :

Netscape.Navigatoy.geometry setting ..... I've never tried this before ... perhaps the Netscape client is not fully X aware to these resources .... have you ever seen this work ?

also worth ago run xrdb -q just in case some CDE resource relating to geometry is over ridding the Xresoures ? ... also check in a users $HOME/.dt/ directory for saved home or current resources.

Lastly you are logging outof CDE or updating xrdb after making these changes right ?

Richard Lathom
Occasional Advisor

Re: positioning of Netscape window in CDE

Thanks, Alex. Your suggstion to try different size settings prompted me to try different position settings. I found the +0-0 is the bottom left corner of the screen,not the top left corner as I had been led to believe. And -0+0 is the top right corner of the screen. FWith that info, I was able to adjust to where I wanted the window on the screen.

Richard