mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
Pump the Qt event loop before creating the SDL window
This commit is contained in:
@@ -1742,6 +1742,12 @@ void Session::exec()
|
||||
return;
|
||||
}
|
||||
|
||||
// Pump the Qt event loop one last time before we create our SDL window
|
||||
// This is sometimes necessary for the QML code to process any signals
|
||||
// we've emitted from the async connection thread.
|
||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
QCoreApplication::sendPostedEvents();
|
||||
|
||||
int x, y, width, height;
|
||||
getWindowDimensions(x, y, width, height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user