Peter Kümmel wrote:
> Michael Gerz wrote:
>> Hi,
>>
>> after applying
>>
>>  svn merge -r14068:HEAD svn+ssh://[EMAIL PROTECTED]/lyx/lyx-devel/trunk
>>
>> the LyX window is always placed in the upper left corner on Windows XP.
>> Even worse, the title bar is no longer visible, such that I cannot move
>> the window.
>>
>> Suspects are
>>
>> r14088 | kuemmel | 2006-06-13 10:05:00 +0200 (Di, 13 Jun 2006) | 208 lines
>> r14101 | kuemmel | 2006-06-14 16:23:25 +0200 (Mi, 14 Jun 2006) | 3 lines
>> r14102 | kuemmel | 2006-06-14 16:32:39 +0200 (Mi, 14 Jun 2006) | 1 line
>> r14103 | kuemmel | 2006-06-14 16:34:50 +0200 (Mi, 14 Jun 2006) | 1 line
>> r14104 | kuemmel | 2006-06-14 16:42:24 +0200 (Mi, 14 Jun 2006) | 1 line
>>
>> Peter, please try to fix this bug. I really hurts!
>>
>> Michael
>>
>>
> 
> Do you use the Qt3 or Qt4 version?
> With the Qt4 version I don't have this problem.
> 
> Peter
> 
> 

The only reason I can see why your positioning fails
are these lines in /src/lyx_main.C

int posx = -1;
int posy = -1;
if (lyxrc.geometry_xysaved) {
     string val = session().loadSessionInfo("WindowPosX");

The new code uses geometry/setGeometry to save and restore the
geometry.  x() and y() of geometry() is not the upper left corner
of the whole window, but the position of the "window excluding the
window frame":
http://doc.trolltech.com/4.1/geometry.html
Because of this you don't see title bar when effectively
setGeometry(-1,-1) is called.

Could it be that "lyxrc.geometry_xysaved" is disabled by your Lyx
version? Maybe because of an old work-around? Or is it configured
at building/installation time?

Now "lyxrc.geometry_xysaved" should always be enabled
for the Qt3 and Qt4 frontends.

Peter

Reply via email to