Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 56 | if (!m_xinputIntegration->hasXinput()) { | |||
---|---|---|---|---|---|
58 | m_xinputIntegration = nullptr; | 58 | m_xinputIntegration = nullptr; | ||
59 | } else { | 59 | } else { | ||
60 | connect(kwinApp(), &Application::workspaceCreated, m_xinputIntegration, &XInputIntegration::startListening); | 60 | connect(kwinApp(), &Application::workspaceCreated, m_xinputIntegration, &XInputIntegration::startListening); | ||
61 | } | 61 | } | ||
62 | } | 62 | } | ||
63 | #endif | 63 | #endif | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | X11StandalonePlatform::~X11StandalonePlatform() = default; | 66 | X11StandalonePlatform::~X11StandalonePlatform() | ||
67 | { | ||||
68 | if (m_openGLFreezeProtectionThread) { | ||||
69 | m_openGLFreezeProtectionThread->quit(); | ||||
70 | m_openGLFreezeProtectionThread->wait(); | ||||
71 | delete m_openGLFreezeProtectionThread; | ||||
72 | } | ||||
73 | } | ||||
67 | 74 | | |||
68 | void X11StandalonePlatform::init() | 75 | void X11StandalonePlatform::init() | ||
69 | { | 76 | { | ||
70 | if (!QX11Info::isPlatformX11()) { | 77 | if (!QX11Info::isPlatformX11()) { | ||
71 | emit initFailed(); | 78 | emit initFailed(); | ||
72 | return; | 79 | return; | ||
73 | } | 80 | } | ||
74 | setReady(true); | 81 | setReady(true); | ||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |