Qt: Fix hide mouse cursor not working with render-to-main off

This commit is contained in:
Connor McLaughlin 2022-06-20 21:50:01 +10:00 committed by refractionpcsx2
parent 9199f48a3c
commit 36d386b451
1 changed files with 5 additions and 0 deletions

View File

@ -1635,6 +1635,11 @@ DisplayWidget* MainWindow::updateDisplay(bool fullscreen, bool render_to_main, b
container->showNormal();
}
m_display_widget->setFocus();
m_display_widget->setShouldHideCursor(shouldHideMouseCursor());
m_display_widget->updateRelativeMode(m_vm_valid && !m_vm_paused);
m_display_widget->updateCursor(m_vm_valid && !m_vm_paused);
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
return m_display_widget;
}