Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!tgould.doc!dme From: dme@doc.ic.ac.uk (Dave Edmondson) Newsgroups: comp.windows.x Subject: Re: tvtwm and -geometry -0-0 Message-ID: Date: 11 Sep 90 08:59:01 GMT References: <1990Sep10.103722@sasha.acc.Virginia.EDU> Sender: news@doc.ic.ac.uk Organization: Imperial College Mafia Lines: 38 In-reply-to: scl@sasha.acc.Virginia.EDU's message of 10 Sep 90 14:37:22 GMT In article <1990Sep10.103722@sasha.acc.Virginia.EDU> scl@sasha.acc.Virginia.EDU (Steve Losen) writes: scl> I have noticed that tvtwm places a window in an unexpected place when scl> using the geometry spec "-0-0", for example. The window is always placed scl> in the lower right corner of the "home" position of the viewer. This scl> happens regardless of the virtual desktop size and the actual position of scl> the viewer. I suspect that "-0-0" is being offset from the physical size scl> of the display rather than the size of the virtual desktop. it is. scl> By the time that tvtwm gets the geometry spec, has the "-0-0" already been scl> translated to the actual coordinates or does tvtwm itself interpret scl> "-0-0"? If the latter, I suspect this is a bug in tvtwm. I would expect scl> "-0-0" to place the window in the lower right corner of the virtual scl> desktop. the application is responsible for parsing negative geometry parts. generally the application will do: realy = display_width + geomy when geomy is negative. if the responsiblity for parsing negative geometries is moved _out_ of the application and into the window manager (which would seem to be a reasonable idea) then the server would also need to be taught to do negative geometries for occasions where no window manager is being used. scl> Is the only solution to always use "positive" geometry specs or can this scl> be fixed in tvtwm? I'm at patchlevel 2. I don't think that it can be fixed. vtwm has the same problem. from reading toml's paper in the last usenix i gather that swm uses the swmhints program to get around this. scl> Steve Losen scl@virginia.edu dave. -- Dave Edmondson Department of Computing, Imperial College, 180 Queen's Gate, London SW7 1BZ UK phone: 071-589-5111 x5085 fax: 071-581-8024 dme@doc.ic.ac.uk, ..!ukc!icdoc!dme, dme@athena.mit.edu