From c1c8287aed2f72e5c20cf70c83060a74634c649f Mon Sep 17 00:00:00 2001 From: baydam Date: Wed, 22 Oct 2014 11:17:01 +0000 Subject: [PATCH] Inverted order in which fullscreen and escape key are called (escape only works in fullscreen). --- OutputGLWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OutputGLWindow.cpp b/OutputGLWindow.cpp index 4a58770..b7d38de 100644 --- a/OutputGLWindow.cpp +++ b/OutputGLWindow.cpp @@ -65,9 +65,9 @@ void OutputGLWindow::closeEvent(QCloseEvent *event) void OutputGLWindow::keyPressEvent(QKeyEvent *event) { // Escape from full screen mode. - if (event->key() == Qt::Key_Escape) + if (isFullScreen()) { - if (isFullScreen()) + if (event->key() == Qt::Key_Escape) { setFullScreen(false); emit fullScreenToggled(false);