Enrico Forestieri wrote:
> On Thu, Jun 15, 2006 at 09:30:00AM -0500, Bo Peng wrote:
>>> BTW, I see that no \screen_geometry_* variables are ever written to
>>> preferences, at least with qt3.
>> Time... I plan(ned) to add xysaved, and fixed height/width to the
>> preference dialog.
>
> I really don't care about them. I do care for the -geometry option,
> though :(
>
Does this patch help?
Index: qt3/lyx_gui.C
===================================================================
--- qt3/lyx_gui.C (revision 14120)
+++ qt3/lyx_gui.C (working copy)
@@ -234,11 +234,12 @@
view.init();
- view.setGeometry(posx, posy, width, height);
+ if (posx != -1 && posy != -1) {
+ view.setGeometry(posx, posy, width, height);
+ if (maximize)
+ view.setWindowState(Qt::WindowMaximized);
+ }
- if (maximize)
- view.setWindowState(Qt::WindowMaximized);
-
view.show();
// FIXME: some code below needs moving
Index: qt4/lyx_gui.C
===================================================================
--- qt4/lyx_gui.C (revision 14120)
+++ qt4/lyx_gui.C (working copy)
@@ -240,11 +240,12 @@
view.init();
- view.setGeometry(posx, posy, width, height);
+ if (posx != -1 && posy != -1) {
+ view.setGeometry(posx, posy, width, height);
+ if (maximize)
+ view.setWindowState(Qt::WindowMaximized);
+ }
- if (maximize)
- view.setWindowState(Qt::WindowMaximized);
-
view.show();
// FIXME: some code below needs moving