> Author: sanda > Date: Mon Apr 7 14:15:55 2008 > New Revision: 24146 > > /*! > * \var lyx::FuncCode lyx::WINDOW_NEW > * \li Action: Creates new empty LyX window. > * \li Notion: Already opened documents from the previous window can be found > under View menu. > * \li Syntax: window-new [<GEOMETRY>] > * \li Params: <GEOMETRY>: pass the geometry of the window. Currently works > only under Windows. > * \li Origin: Abdel, 21 Oct 2006
Abdel, what is the reason for geometry argument used only when #ifdef Q_WS_WIN ? i have tried the following patch here (linux) and it seems to work. could i apply it? pavel
diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index c3079de..879d248 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -409,7 +409,6 @@ void GuiApplication::createView(QString const & geometry_arg, bool autoShow) } if (!geometry_arg.isEmpty()) { -#ifdef Q_WS_WIN int x, y; int w, h; QRegExp re( "[=]*(?:([0-9]+)[xX]([0-9]+)){0,1}[ ]*(?:([+-][0-9]*)([+-][0-9]*)){0,1}" ); @@ -419,7 +418,6 @@ void GuiApplication::createView(QString const & geometry_arg, bool autoShow) x = re.cap(3).toInt(); y = re.cap(4).toInt(); view->setGeometry(x, y, w, h); -#endif } view->setFocus(); setCurrentView(view);