Bo Peng wrote:
> On 1/13/07, Bennett Helm <[EMAIL PROTECTED]> wrote:
>> On Mac with the "save/restore window position" option checked, every
>> time I quit LyX, the number stored in the session file for WindowPosY
>> is decremented by 20, causing the LyX window to open higher and
>> higher on the screen (eventually going off the top resulting in there
>> being no way to bring it back down).
> 
> This is qt4 stuff and Peter should know this well. I guess it is
> caused by some differences in what is saved (geometry of outer frame?)
> and what is used (workarea only?).
> 
> Cheers,
> Bo
> 

Yes, there is a offset used on Windows and Linux, seems this
is not necessary on the Mac. Does the patch help?

Peter
Index: src/frontends/qt4/GuiView.C
===================================================================
--- src/frontends/qt4/GuiView.C (revision 16674)
+++ src/frontends/qt4/GuiView.C (working copy)
@@ -370,11 +370,13 @@
                        d.posx_offset = posx - normalGeometry().x();
                        d.posy_offset = posy - normalGeometry().y();
 #else
+#ifndef Q_WS_MACX
                        if (!maximize) {
                                d.posx_offset = posx - geometry().x();
                                d.posy_offset = posy - geometry().y();
                        }
 #endif
+#endif
                }
 }
 

Reply via email to