> When the LyX window is maximized and I switch to full screen and back, the > maximized state is not restored.
errm, i didnt realise this since the maximize state is problematic in linux. can you try whether this patch helps? > By the way, full screen writing looks like a really nice feature :) thanks pavel
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c86fa2d..a982c3d 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1960,7 +1960,8 @@ void GuiView::lfunUiToggle(FuncRequest const & cmd) #if QT_VERSION >= 0x040300 setContentsMargins(0, 0, 0, 0); #endif - showNormal(); + //showNormal(); + setWindowState(windowState() ^ Qt::WindowFullScreen); menuBar()->show(); statusBar()->show(); } else { @@ -1969,7 +1970,8 @@ void GuiView::lfunUiToggle(FuncRequest const & cmd) #if QT_VERSION >= 0x040300 setContentsMargins(-2, -2, -2, -2); #endif - showFullScreen(); + //showFullScreen(); + setWindowState(windowState() ^ Qt::WindowFullScreen); statusBar()->hide(); menuBar()->hide(); }