Create the SystemProperties test window on the main thread

This commit is contained in:
Cameron Gutman
2026-01-25 17:10:04 -06:00
parent 05ef938e2c
commit 64fea80ac9
6 changed files with 89 additions and 60 deletions
+4
View File
@@ -3,6 +3,8 @@
#include <QObject>
#include <QRect>
#include "SDL_compat.h"
class SystemProperties : public QObject
{
Q_OBJECT
@@ -11,6 +13,7 @@ class SystemProperties : public QObject
public:
SystemProperties();
~SystemProperties();
// Static properties queried synchronously during the constructor
Q_PROPERTY(bool isRunningWayland MEMBER isRunningWayland CONSTANT)
@@ -47,6 +50,7 @@ private slots:
private:
QThread* systemPropertyQueryThread;
SDL_Window* testWindow;
// Properties set by the constructor
bool isRunningWayland;