aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/main.cpp')
-rw-r--r--src/frontend/qt_sdl/main.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 240d52e..6766252 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1431,6 +1431,11 @@ void MainWindow::createScreenPanel()
{
panelGL = new ScreenPanelGL(this);
panelGL->show();
+
+ panel = panelGL;
+ panelGL->setMouseTracking(true);
+ mouseTimer = panelGL->setupMouseTimer();
+ connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
if (!panelGL->isValid())
hasOGL = false;
@@ -1443,14 +1448,6 @@ void MainWindow::createScreenPanel()
if (!hasOGL)
delete panelGL;
-
- if (hasOGL)
- {
- panel = panelGL;
- panelGL->setMouseTracking(true);
- mouseTimer = panelGL->setupMouseTimer();
- connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
- }
}
if (!hasOGL)