> 1. When coming out of fullscreen mode, the normal window returns, but it 
> does not automatically take focus as it should.

Bennett, i have an idea. if you still suffer from the focusing problem,
can you try this patch?

pavel
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index c86fa2d..1fa802e 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 | Qt::WindowActive);
 		statusBar()->hide();
 		menuBar()->hide();
 	}

Reply via email to