Revert "Wait shortly for QApplication to register the screen change before continuing."

This reverts commit beca4bb5c7b3662020aec640de060f949dc220e1.
Wait shortly for QApplication to register the screen change before continuing.

When there’s a screen resolution change, QApplication::desktop() will continue to report the old resolution causing incorrect sizing at startup.

Now, create a QEventLoop that will process the required events during a short period of time.